Click here to Skip to main content
15,887,915 members
Home / Discussions / Database
   

Database

 
QuestionWhat sql data field is the most suitable to store file navigation url Pin
tomertro21-Dec-08 4:17
tomertro21-Dec-08 4:17 
AnswerRe: What sql data field is the most suitable to store file navigation url Pin
Wendelius21-Dec-08 4:22
mentorWendelius21-Dec-08 4:22 
GeneralRe: What sql data field is the most suitable to store file navigation url Pin
tomertro21-Dec-08 4:28
tomertro21-Dec-08 4:28 
GeneralRe: What sql data field is the most suitable to store file navigation url Pin
Wendelius21-Dec-08 4:31
mentorWendelius21-Dec-08 4:31 
GeneralRe: What sql data field is the most suitable to store file navigation url Pin
Mycroft Holmes21-Dec-08 13:42
professionalMycroft Holmes21-Dec-08 13:42 
GeneralRe: What sql data field is the most suitable to store file navigation url Pin
Wendelius21-Dec-08 18:07
mentorWendelius21-Dec-08 18:07 
AnswerRe: What sql data field is the most suitable to store file navigation url Pin
dan!sh 21-Dec-08 4:25
professional dan!sh 21-Dec-08 4:25 
QuestionHow can I show Query result in the following way??? Pin
Chadamama21-Dec-08 3:17
Chadamama21-Dec-08 3:17 
I have to tables in SQL Server 2005....
01) EmployeeMaster (DeptId as FK)
02) DepartmentMaster

Now, I am writing a SQL Query which returns me the All Employee from the EmployeeMaster belogs to the "SQL" department.

I manage to write the query but I want result in different manner:
My original result from the SQL is as under:

Result from SQL
--------------------
DeptId DeptCode DeptName EmpId EmpName
D00001 MS00001 SQL E00001 ABC
D00001 MS00001 SQL E00002 EFG
D00001 MS00001 SQL E00003 XYZ

My requirement is
---------------------
DeptId DeptCode DeptName EmpId EmpName
D00001 MS00001 SQL E00001 ABC
E00002 EFG
E00003 XYZ

in my requirement only one row will be displayed.

How can achieve this result by writting SQL Query?

Thanks,
Smile | :)
AnswerRe: How can I show Query result in the following way??? Pin
Wendelius21-Dec-08 3:51
mentorWendelius21-Dec-08 3:51 
GeneralRe: How can I show Query result in the following way??? Pin
Chadamama21-Dec-08 17:22
Chadamama21-Dec-08 17:22 
GeneralRe: How can I show Query result in the following way??? Pin
Wendelius21-Dec-08 18:08
mentorWendelius21-Dec-08 18:08 
QuestionQuery Help Pin
Saiyed Alam20-Dec-08 23:59
Saiyed Alam20-Dec-08 23:59 
AnswerRe: Query Help Pin
Wendelius21-Dec-08 0:39
mentorWendelius21-Dec-08 0:39 
GeneralRe: Query Help Pin
Saiyed Alam21-Dec-08 0:57
Saiyed Alam21-Dec-08 0:57 
GeneralRe: Query Help Pin
Wendelius21-Dec-08 1:46
mentorWendelius21-Dec-08 1:46 
AnswerRe: Query Help Pin
Blue_Boy21-Dec-08 0:47
Blue_Boy21-Dec-08 0:47 
GeneralRe: Query Help Pin
Saiyed Alam21-Dec-08 0:56
Saiyed Alam21-Dec-08 0:56 
GeneralRe: Query Help Pin
Blue_Boy21-Dec-08 0:58
Blue_Boy21-Dec-08 0:58 
QuestionQuestion Update a Query with Case When Data Pin
pdnet20-Dec-08 2:58
pdnet20-Dec-08 2:58 
AnswerRe: Question Update a Query with Case When Data Pin
Wendelius20-Dec-08 4:56
mentorWendelius20-Dec-08 4:56 
GeneralRe: Question Update a Query with Case When Data Pin
pdnet21-Dec-08 17:56
pdnet21-Dec-08 17:56 
GeneralRe: Question Update a Query with Case When Data Pin
Wendelius21-Dec-08 18:17
mentorWendelius21-Dec-08 18:17 
QuestionSearch Optimization Pin
Krishnraj19-Dec-08 23:28
Krishnraj19-Dec-08 23:28 
AnswerRe: Search Optimization Pin
Wendelius19-Dec-08 23:57
mentorWendelius19-Dec-08 23:57 
GeneralRe: Search Optimization Pin
Krishnraj20-Dec-08 1:01
Krishnraj20-Dec-08 1:01 

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.