Viewing 10 posts - 751 through 760 (of 760 total)
.bat files when run using the xp_cmdshell will always give you only the process state....it actually gives you a table which has a column which would actually show you the...
April 11, 2012 at 10:01 pm
This might help.
declare @value varchar(50) = 'Test'
declare @query varchar(max)
Set @query = 'Select * From'+' '+@value+';'
Execute (@query)
Vinu Vijayan
April 10, 2012 at 11:05 pm
May be this would help.
Select *, row_number() Over (Partition By <field name> Order By <field name>) As RowCount From <table name>
Vinu Vijayan
April 10, 2012 at 10:49 pm
capn.hector (4/9/2012)
jitendra.padhiyar (4/9/2012)
"Saving changes is not permitted. The changes...
April 9, 2012 at 10:13 pm
I hope this is what you're looking for.
This will give you result for all MNames:
Select idD, MName, MIN(lastD) as MinDate, MAX(lastD) as MaxDate From Ex
Group By MName, idD
Order By MName
If...
April 9, 2012 at 6:47 am
If you think that your table does not contain nulls and only contains unique data, then you can alter the table to add a primary key as follows :
1. Open...
April 9, 2012 at 1:18 am
I still don't clearly understand what you mean by
"I need to find the distinct records having both the minimum & maximum date (lastD) for each MName"
From your sample data, max(lastd)...
April 9, 2012 at 1:07 am
View_metadata is a key word that passes all the properties of the view to various APIs. When you browse information about a query that is using the View's data then...
April 6, 2012 at 3:08 am
You really need to NORMALIZE that table. Other than that, this was the closest I could get with that data.
SELECT Distinct SUBSTRING(Location,9,5) As country, COUNT(SUBSTRING(Location,9,5))
OVER(PARTITION BY SUBSTRING(Location,9,5) ) As Count...
April 4, 2012 at 11:48 pm
Viewing 10 posts - 751 through 760 (of 760 total)