Click here to Skip to main content
15,914,111 members
Home / Discussions / Database
   

Database

 
QuestionWhy would you ever designate a primary key as non-clustered? Pin
Marc Clifton19-Jun-08 9:29
mvaMarc Clifton19-Jun-08 9:29 
AnswerRe: Why would you ever designate a primary key as non-clustered? Pin
SomeGuyThatIsMe19-Jun-08 14:41
SomeGuyThatIsMe19-Jun-08 14:41 
GeneralRe: Why would you ever designate a primary key as non-clustered? [modified] Pin
Alsvha19-Jun-08 18:14
Alsvha19-Jun-08 18:14 
GeneralRe: Why would you ever designate a primary key as non-clustered? Pin
SomeGuyThatIsMe20-Jun-08 0:02
SomeGuyThatIsMe20-Jun-08 0:02 
AnswerRe: Why would you ever designate a primary key as non-clustered? Pin
Alsvha19-Jun-08 18:21
Alsvha19-Jun-08 18:21 
AnswerRe: Why would you ever designate a primary key as non-clustered? Pin
econner26-Jun-08 17:02
econner26-Jun-08 17:02 
Questionjoining two queries Pin
csp19-Jun-08 2:09
csp19-Jun-08 2:09 
AnswerRe: joining two queries Pin
Blue_Boy19-Jun-08 3:44
Blue_Boy19-Jun-08 3:44 
use UNION

select convert(varchar(10),status.Logintime ,101) as Date,empcode,empname,count(*) as [No of Calls]<br />
from status join empmaster on empmaster.empid = status.empcode<br />
where empmaster.Permission <> '1' and logintime between '06/02/2006' and '06/03/2006' <br />
group by empcode,empname, convert(varchar(10),status.Logintime ,101) order by empcode asc<br />
<br />
UNOIN<br />
<br />
select convert(varchar(10),status.Logintime ,101) as Date,empcode,empname,count(*) as [No of Contacts]<br />
from status join empmaster on empmaster.empid = status.employeecode<br />
where empmaster.Permission <> '1' and logintime between '06/02/2008' and '06/03/2008' and<br />
statuscode not in (11)group by empcode,empname, convert(varchar(10),status.Logintime ,101) order by emp asc 



I Love T-SQL
"Don't torture yourself,let the life to do it for you."

GeneralRe: joining two queries Pin
A Wong19-Jun-08 3:50
A Wong19-Jun-08 3:50 
GeneralRe: joining two queries Pin
Blue_Boy19-Jun-08 3:52
Blue_Boy19-Jun-08 3:52 
GeneralRe: joining two queries Pin
A Wong19-Jun-08 4:48
A Wong19-Jun-08 4:48 
AnswerRe: joining two queries Pin
Niraj_Silver26-Jun-08 0:15
Niraj_Silver26-Jun-08 0:15 
QuestionThe multipart identifier could not be bound Pin
JacquesDP18-Jun-08 23:20
JacquesDP18-Jun-08 23:20 
AnswerRe: The multipart identifier could not be bound Pin
Blue_Boy19-Jun-08 1:05
Blue_Boy19-Jun-08 1:05 
GeneralRe: The multipart identifier could not be bound Pin
JacquesDP19-Jun-08 1:30
JacquesDP19-Jun-08 1:30 
GeneralRe: The multipart identifier could not be bound Pin
Blue_Boy19-Jun-08 3:42
Blue_Boy19-Jun-08 3:42 
Questionselecting highest number smaller than? Pin
Tom Deketelaere18-Jun-08 21:07
professionalTom Deketelaere18-Jun-08 21:07 
AnswerRe: selecting highest number smaller than? Pin
ChandraRam18-Jun-08 21:24
ChandraRam18-Jun-08 21:24 
GeneralRe: selecting highest number smaller than? Pin
Tom Deketelaere18-Jun-08 21:40
professionalTom Deketelaere18-Jun-08 21:40 
GeneralRe: selecting highest number smaller than? Pin
Blue_Boy18-Jun-08 22:41
Blue_Boy18-Jun-08 22:41 
GeneralRe: selecting highest number smaller than? Pin
ChandraRam20-Jun-08 2:21
ChandraRam20-Jun-08 2:21 
QuestionData transaction between MySQL , MSMQ and Asp.net C# application Pin
jmohan18-Jun-08 20:41
jmohan18-Jun-08 20:41 
AnswerRe: Data transaction between MySQL , MSMQ and Asp.net C# application Pin
Niraj_Silver26-Jun-08 0:21
Niraj_Silver26-Jun-08 0:21 
QuestionProblem in query Pin
Poonam Gandash18-Jun-08 20:02
Poonam Gandash18-Jun-08 20:02 
AnswerRe: Problem in query Pin
Colin Angus Mackay18-Jun-08 20:53
Colin Angus Mackay18-Jun-08 20:53 

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.