Viewing 15 posts - 631 through 645 (of 760 total)
poornipmca (4/25/2012)
i have heard using indexes have lot of problems . is it so...........
Wherever you heard that....but I am not talking about INDEXING.....I'm talking about maintaining a table as an...
April 25, 2012 at 3:09 am
I thought the OP wants the previous date for the "Latest" test date. The latest test date not only in this case but in all cases will be the top...
April 25, 2012 at 3:03 am
The values keep changing because of the JOIN itself. The values must be getting filtered further because of the JOIN with #table4.
If you want all the data from the result...
April 25, 2012 at 2:53 am
Would this work?
SELECT TOP 1 test_date
FROM (
SELECT DISTINCT TOP 2 test_date
FROM datetest
ORDER BY test_date DESC) a
ORDER BY test_date
April 25, 2012 at 2:40 am
Why don't you keep an Index Table where you can store all the Customers and the names of the Databases of the respective Customers?
Then you can create a Stored Procedure...
April 25, 2012 at 12:17 am
These are the things I wanted it to do
1. I wanted the old record in SMARTAdmissions table to be deleted as the upload process start
2. then as data are added...
April 24, 2012 at 11:16 pm
vicdileo (4/24/2012)
1) please supply the full CREATE TABLE sql (including table name) of both tables.
2) how is the data being copied? Using SQL? Using a tool? Please...
April 24, 2012 at 10:58 pm
Yes...thats right.
No loops! No CURSORs! No RBAR! Hoo-uh!
April 24, 2012 at 10:55 pm
MAAAAN!!!!...He really knows it all....lol
+1 SQLKnowItAll....I agree.
April 24, 2012 at 10:36 pm
Eugene Elutin (4/24/2012)
vahid.arr (4/24/2012)
i have userid pk and i want also make username and password field uniqe.how can i do that?
You can create unique index (or unique constraint) on username....
April 24, 2012 at 10:35 pm
Yes. Seems like the only way to do "WHERE column = anything" is using a temporary variable ie: "WHERE column = @anything".
Can't think of anything else until the OP clarifies...
April 24, 2012 at 10:18 pm
Excellent Allen....it was as simple as that :laugh:
April 24, 2012 at 9:59 pm
Viewing 15 posts - 631 through 645 (of 760 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy