Click here to Skip to main content
15,926,939 members
Home / Discussions / Database
   

Database

 
Questionquery Pin
dayakar_dn22-Aug-06 20:36
dayakar_dn22-Aug-06 20:36 
AnswerRe: query Pin
Eric Dahlvang23-Aug-06 5:10
Eric Dahlvang23-Aug-06 5:10 
Questionhow to configure a SQL Server 2000 that syncronize the data with Microsoft SQL Server 2000 Enterprise Manager [modified] Pin
Vartika Srivastava22-Aug-06 20:17
Vartika Srivastava22-Aug-06 20:17 
QuestionBulk Insert Pin
Yong Yau22-Aug-06 17:47
Yong Yau22-Aug-06 17:47 
QuestionAccessing local database created in VS 2005 [modified] Pin
Libor Tinka22-Aug-06 7:00
Libor Tinka22-Aug-06 7:00 
AnswerRe: Accessing local database created in VS 2005 Pin
Mike Dimmick22-Aug-06 23:59
Mike Dimmick22-Aug-06 23:59 
QuestionDouble field name in select statement [modified] Pin
Paddy Boyd22-Aug-06 3:14
Paddy Boyd22-Aug-06 3:14 
AnswerRe: Double field name in select statement Pin
Colin Angus Mackay22-Aug-06 5:04
Colin Angus Mackay22-Aug-06 5:04 
Paddy Boyd wrote:
I'm just wondering why?


You can create aliases for column names. I tend to write them explicitly so that anyone maintaining the code knows what I was doing. e.g.
SELECT RealColumnName AS AliasName 
FROM TableName


The "AS" is optional and can be left out. As you can probably tell, it makes the code much easier to read if the "AS" is left is because it reduces the ambiguity, especially if someone was not aware of aliases, or that they can be declared without the "AS".

Why the guy put "NAME NAME"? No idea, but it just adds to the confusion, doesn't it? Perhaps he wanted to waste the time of those that came after him. Perhaps he was just an idiot. That is something I guess we'll never know. Big Grin | :-D


GeneralRe: Double field name in select statement Pin
Paddy Boyd22-Aug-06 5:08
Paddy Boyd22-Aug-06 5:08 
AnswerRe: Double field name in select statement Pin
Colin Angus Mackay22-Aug-06 5:06
Colin Angus Mackay22-Aug-06 5:06 
QuestionHow to catch the error return from a trigger in stored procedure in sql 2000 Pin
merlynml21-Aug-06 23:01
merlynml21-Aug-06 23:01 
AnswerRe: How to catch the error return from a trigger in stored procedure in sql 2000 Pin
Eric Dahlvang22-Aug-06 4:48
Eric Dahlvang22-Aug-06 4:48 
Question[DTS] Replace "N.A." with NULL Pin
Duncan Edwards Jones21-Aug-06 22:39
professionalDuncan Edwards Jones21-Aug-06 22:39 
QuestionAbout send mail from SQL Server 2000. Pin
selvaraj S.Kaliyappan21-Aug-06 22:28
selvaraj S.Kaliyappan21-Aug-06 22:28 
QuestionMultiple Tables/DB's performance Pin
MatthysDT21-Aug-06 20:57
MatthysDT21-Aug-06 20:57 
AnswerRe: Multiple Tables/DB's performance Pin
Mike Dimmick22-Aug-06 2:05
Mike Dimmick22-Aug-06 2:05 
AnswerRe: Multiple Tables/DB's performance Pin
i.j.russell22-Aug-06 2:57
i.j.russell22-Aug-06 2:57 
QuestionTable partitioning in SQL Server 2000 Pin
Uma Kameswari21-Aug-06 18:39
Uma Kameswari21-Aug-06 18:39 
AnswerRe: Table partitioning in SQL Server 2000 Pin
_AK_21-Aug-06 20:03
_AK_21-Aug-06 20:03 
GeneralRe: Table partitioning in SQL Server 2000 Pin
Uma Kameswari21-Aug-06 21:51
Uma Kameswari21-Aug-06 21:51 
GeneralRe: Table partitioning in SQL Server 2000 Pin
Colin Angus Mackay21-Aug-06 22:06
Colin Angus Mackay21-Aug-06 22:06 
QuestionAdding a new row to a DataTable Pin
dptalt21-Aug-06 10:09
dptalt21-Aug-06 10:09 
AnswerRe: Adding a new row to a DataTable Pin
Stephen McGuire21-Aug-06 11:48
Stephen McGuire21-Aug-06 11:48 
AnswerRe: Adding a new row to a DataTable Pin
Keith Malwitz21-Aug-06 12:10
Keith Malwitz21-Aug-06 12:10 
QuestionRe: Adding a new row to a DataTable Pin
dptalt21-Aug-06 16:26
dptalt21-Aug-06 16:26 

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.