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

Database

 
AnswerRe: How to get top n records Pin
Tirthadip13-Jun-07 22:32
Tirthadip13-Jun-07 22:32 
Questionhow to call a webservice from stored procedure in SQL Server2000? Pin
chronossu13-Jun-07 21:27
chronossu13-Jun-07 21:27 
Questioncreate alias and tables on my pc and copy them with setup or create them in installed pc Pin
upamir13-Jun-07 21:19
upamir13-Jun-07 21:19 
QuestionText datatype not exceeding 8000 characters Pin
Rajiya13-Jun-07 20:51
Rajiya13-Jun-07 20:51 
AnswerRe: Text datatype not exceeding 8000 characters Pin
Krish - KP13-Jun-07 23:21
Krish - KP13-Jun-07 23:21 
AnswerRe: Text datatype not exceeding 8000 characters Pin
Mike Dimmick14-Jun-07 9:20
Mike Dimmick14-Jun-07 9:20 
GeneralRe: Text datatype not exceeding 8000 characters Pin
Rajiya17-Jun-07 18:59
Rajiya17-Jun-07 18:59 
QuestionQuery doubt.....(Urgent need plz hlp me), Pin
Member 387988113-Jun-07 17:55
Member 387988113-Jun-07 17:55 
Hi i am week in query,
plz solve my probs...,
the following queries,that first query and second query both are working...,
Now my question is,
What are the fields, i am getting in the two queries those want to show in single query...,
Means,in first query ur giving date in that it want to take the year only
and check with tblmonthhourdetails.sdate
and same time the tblmonthhourdetails empid want to equal with the employeemaster.empid

------------------------------------------------------------------
SELECT dbo.tblEmployeeMaster.empId, dbo.tblEmployeeMaster.empName,
dbo.tblTimeCardmain.carddate, dbo.tblTimeCardmain.reportingtime,
dbo.tblTimeCardmain.leavingtime, dbo.tblSalaryDetails.Whrs,
dbo.tblTimeCardmain.shift, dbo.tblTimeCardmain.projectid
FROM dbo.tblEmployeeMaster INNER JOIN dbo.tblTimeCardmain ON
dbo.tblEmployeeMaster.empId = dbo.tblTimeCardmain.empid INNER JOIN
dbo.tblSalaryDetails ON
dbo.tblEmployeeMaster.empId = dbo.tblSalaryDetails.EmpID
WHERE dbo.tblTimeCardmain.carddate = '5/2/2007'
AND dbo.tblTimeCardmain.app1 = 1 AND
dbo.tblTimeCardmain.projectid = 100
-----------------------------------------------------------------------
SELECT SUM(MedicalLeave) AS Ml, SUM(AnnualLeave) AS AL, EmpId
FROM dbo.tblMonthHourDetails
WHERE (DATEPART(YYYY, SDate) = 2007)
GROUP BY EmpId, SDate
-----------------------------------------------------------------------
Plz hlp me...,


-- modified at 1:05 Thursday 14th June, 2007

Magi

AnswerRe: Query doubt.....(Urgent need plz hlp me), Pin
andyharman13-Jun-07 23:01
professionalandyharman13-Jun-07 23:01 
GeneralRe: Query doubt.....(Urgent need plz hlp me), Pin
Member 387988113-Jun-07 23:42
Member 387988113-Jun-07 23:42 
AnswerRe: Query doubt.....(Urgent need plz hlp me), Pin
Andy *M*13-Jun-07 23:15
Andy *M*13-Jun-07 23:15 
QuestionHow to display duplicate values in a table ? Pin
ahmedalisha13-Jun-07 17:30
ahmedalisha13-Jun-07 17:30 
AnswerRe: How to display duplicate values in a table ? Pin
Krish - KP13-Jun-07 17:35
Krish - KP13-Jun-07 17:35 
Question2 DataBases? Yes, 2 DataBases Pin
andreumv13-Jun-07 8:38
andreumv13-Jun-07 8:38 
AnswerRe: 2 DataBases? Yes, 2 DataBases Pin
Sankar Komma 13-Jun-07 11:08
Sankar Komma 13-Jun-07 11:08 
GeneralRe: 2 DataBases? Yes, 2 DataBases Pin
Krish - KP13-Jun-07 18:06
Krish - KP13-Jun-07 18:06 
GeneralRe: 2 DataBases? Yes, 2 DataBases Pin
andreumv13-Jun-07 21:58
andreumv13-Jun-07 21:58 
AnswerRe: 2 DataBases? Yes, 2 DataBases Pin
Krish - KP13-Jun-07 17:49
Krish - KP13-Jun-07 17:49 
Question@@identity Pin
seemamltn13-Jun-07 7:25
seemamltn13-Jun-07 7:25 
AnswerRe: @@identity Pin
andyharman13-Jun-07 7:31
professionalandyharman13-Jun-07 7:31 
QuestionMaximum length of a field in SQl SERVER Pin
S.Rajeshwar13-Jun-07 6:13
S.Rajeshwar13-Jun-07 6:13 
AnswerRe: Maximum length of a field in SQl SERVER Pin
Colin Angus Mackay13-Jun-07 6:24
Colin Angus Mackay13-Jun-07 6:24 
AnswerRe: Maximum length of a field in SQl SERVER Pin
Mike Dimmick13-Jun-07 12:15
Mike Dimmick13-Jun-07 12:15 
GeneralRe: Maximum length of a field in SQl SERVER Pin
Colin Angus Mackay13-Jun-07 13:11
Colin Angus Mackay13-Jun-07 13:11 
QuestionRe: Maximum length of a field in SQl SERVER Pin
S.Rajeshwar13-Jun-07 19:58
S.Rajeshwar13-Jun-07 19:58 

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.