Click here to Skip to main content
15,888,816 members
Home / Discussions / Database
   

Database

 
Questionretrieving the highest IDENTITY number in a table:sqlserv05? Pin
giddy_guitarist16-Apr-07 10:21
giddy_guitarist16-Apr-07 10:21 
AnswerRe: retrieving the highest IDENTITY number in a table:sqlserv05? Pin
Mark J. Miller16-Apr-07 12:20
Mark J. Miller16-Apr-07 12:20 
GeneralRe: retrieving the highest IDENTITY number in a table:sqlserv05? Pin
giddy_guitarist17-Apr-07 9:48
giddy_guitarist17-Apr-07 9:48 
GeneralRe: retrieving the highest IDENTITY number in a table:sqlserv05? [modified] Pin
giddy_guitarist18-Apr-07 4:09
giddy_guitarist18-Apr-07 4:09 
QuestionVB.NET accessing SQL Server 2005 Pin
Marcus J. Smith16-Apr-07 9:43
professionalMarcus J. Smith16-Apr-07 9:43 
AnswerRe: VB.NET accessing SQL Server 2005 Pin
Colin Angus Mackay16-Apr-07 11:24
Colin Angus Mackay16-Apr-07 11:24 
QuestionProblem creating jobs in SQLServer 2005 Pin
allende16-Apr-07 8:19
allende16-Apr-07 8:19 
QuestionCase insensitive order by Pin
ATCsharp16-Apr-07 6:29
ATCsharp16-Apr-07 6:29 
Hello,

I am new to t-sql programming (sql server 2005) and I have a small problem. The DB system is current deployed with case sensitivity on. What I need to accomplish is a simple query that finds a distinct list of names and return them in a case-insensitive order.

here is what I attempted:

SELECT DISTINCT Name
FROM MyTable
ORDER BY lower(Name)

This of course bombs on me because "ORDER BY items must appear in the select list if SELECT DISTINCT is specified." I intend on keeping the returned case the same as it appears in my table. This prevents me from solving the issue with "SELECT DISTINCT lower(Name)" Any help is much appreciated!

~Adam
AnswerRe: Case insensitive order by Pin
andyharman16-Apr-07 7:11
professionalandyharman16-Apr-07 7:11 
QuestionCLOB Convert to String Pin
ytubis16-Apr-07 4:57
ytubis16-Apr-07 4:57 
AnswerRe: CLOB Convert to String Pin
Krish - KP16-Apr-07 21:36
Krish - KP16-Apr-07 21:36 
QuestionHow do I protect Access database (MDB file)? Pin
testmail_12316-Apr-07 2:44
testmail_12316-Apr-07 2:44 
AnswerRe: How do I protect Access database (MDB file)? Pin
Dave Kreskowiak16-Apr-07 4:18
mveDave Kreskowiak16-Apr-07 4:18 
GeneralRe: How do I protect Access database (MDB file)? Pin
testmail_12317-Apr-07 1:06
testmail_12317-Apr-07 1:06 
AnswerRe: How do I protect Access database (MDB file)? Pin
Mark J. Miller16-Apr-07 12:26
Mark J. Miller16-Apr-07 12:26 
QuestionHelp with cursor Pin
allende16-Apr-07 1:54
allende16-Apr-07 1:54 
AnswerRe: Help with cursor Pin
Pete O'Hanlon16-Apr-07 2:02
mvePete O'Hanlon16-Apr-07 2:02 
GeneralRe: Help with cursor Pin
allende16-Apr-07 2:53
allende16-Apr-07 2:53 
GeneralRe: Help with cursor Pin
Pete O'Hanlon16-Apr-07 5:12
mvePete O'Hanlon16-Apr-07 5:12 
GeneralRe: Help with cursor Pin
allende16-Apr-07 5:43
allende16-Apr-07 5:43 
GeneralRe: Help with cursor Pin
Pete O'Hanlon16-Apr-07 22:50
mvePete O'Hanlon16-Apr-07 22:50 
Questionsql query Pin
Shuaib wasif khan16-Apr-07 1:25
Shuaib wasif khan16-Apr-07 1:25 
AnswerRe: sql query Pin
Christian Graus16-Apr-07 1:43
protectorChristian Graus16-Apr-07 1:43 
QuestionJoin table Pin
AnhTin15-Apr-07 20:33
AnhTin15-Apr-07 20:33 
AnswerRe: Join table Pin
Colin Angus Mackay15-Apr-07 21:08
Colin Angus Mackay15-Apr-07 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.