Viewing 15 posts - 1,081 through 1,095 (of 1,539 total)
Christopher Stobbs (6/17/2009)
June 17, 2009 at 5:36 am
Christopher Stobbs (6/17/2009)
Why is there an Office field in both tables?Did you want the office from the employee or from the posting returned?
I was confused too!! but didnt ask:w00t:. That's...
June 17, 2009 at 5:21 am
forgot to paste the results.
OUTPUT:-
---------
empno name office startdate
----------- --------- ----------- -----------------------
1 ...
June 17, 2009 at 5:15 am
I'm getting same error... it seems create database doens't accept variables.
not even with sp_executesql.
June 17, 2009 at 5:13 am
create table employee
(empno int,
name varchar(100),
Office varchar(100))
create table Posting
(
ser int,
empno int,
office varchar(100),
startdate datetime
)
Insert into employee
select 1,'pradeep','mumbai'
union
select 2,'kumar','pune'
union
select 3, 'singh','bangalore'
insert into posting
select 1,1,'delhi', getdate()-200
union
select 2,1,'noida',getdate()-100
union
select 3,1,'mumbai',getdate()-10
union
select 4,2,'pune', getdate()-2
union
select...
June 17, 2009 at 5:11 am
What is the error message that you're getting?
June 17, 2009 at 4:56 am
Yeah. And as rightly pointed by Christopher, use GROUP BY and MAX...
June 17, 2009 at 4:56 am
select emp.empno, emp.name, posting.office, posting.startdate
from employee emp Inner Join Posting
on emp.empno=posting.empno
Pls post the table structure with sample data for better answers.
June 17, 2009 at 4:53 am
Not this issue but yesterday i wasn't able to see the Longest thread "Are posted questions getting worse" in the active thread list even when there were lots of new...
June 17, 2009 at 4:50 am
Wintop (6/17/2009)
Is that the same installing 2 difference version of sql servers on same machine?
Yes. You can install same version of SQL Server multiple times as well. There is limitation...
June 17, 2009 at 4:05 am
If you add a new table on the publication, u need to generate a new snapshot and re-synchronize.
June 17, 2009 at 1:48 am
shiwani2002sg (6/17/2009)
substring doesnt accept -3 as length. so plz suggest some way
ex helloALL
output :...
June 17, 2009 at 12:58 am
http://www.mssqltips.com/tip.asp?tip=1294 shows many ways how you can find out dependencies (eg. there might be an index that is dependent on your base table).
Once you know what all objects(index, constraints...
June 16, 2009 at 10:48 pm
Viewing 15 posts - 1,081 through 1,095 (of 1,539 total)