Viewing 15 posts - 1 through 15 (of 48 total)
The replie is quite simple when you go with finding the date as getdate(), the getdate will return you as 2012-02-22 10:03:50.033 if you look carefully it include yyyy-mm-dd hh:mm:ss.nano...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
February 22, 2012 at 9:08 am
Thanks all
I got good lesson to learn about union and order by
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 27, 2012 at 7:08 am
Hi All
I feeling very odd to ask but i am really really very confused by this how to make order by when query have union or union all
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 27, 2012 at 5:10 am
Thanks both you gave me better picture for the result ... but today i came to know that case statement cant have In clause
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 27, 2012 at 4:49 am
Hi
Try this it will make you insert from other table and id starting with 1000000
DECLARE @START INT
DECLARE @END INT
SELECT @START = 1000000 --START VALUE
SET @END = (SELECT COUNT(*) FROM...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 17, 2012 at 8:46 am
Hi
hey thanks to both yes indeed need to understand the things before taking help and cross checking the good lesson will surely follow in future..
Thanks guys for your support and...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 11, 2012 at 2:57 am
Rookie
This is one of the way you can try for your desire result but for this you need to know what your sp is returning it.
-- create temp...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 4, 2012 at 4:54 am
Hey rookie
may i know what kind of result do your sp retuns. Is it one column result of multicolumn result because you using select not in which means it need...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 4, 2012 at 4:44 am
Hi
I dont know how much this gonna benifite you just try if you this can make thing quite ok
DECLARE @FKVALUE INT
SET @FKVALUE = 1
INSERT INTO TABLE2(COLUMN1,COLUMN2)
SELECT COLUMN1,ISNULL(COLUMN2,@FKVALUE) FROM TABLE1
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 4, 2012 at 4:38 am
Hi
Its really getting confuse over here... Just need to ask you need that value to be splite into two columns one with only numerical and other only alpha. Is this...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 3, 2012 at 9:08 am
Hi
here there is a query for the data population you need to do some alter respect to what data you want and from which table you want just make...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 3, 2012 at 8:58 am
Hi
SELECT round(cast(((medacct# - ParticipantsAnnualElection)/26)as money),0) as Money
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 3, 2012 at 8:42 am
Hi...
Hey actually you trying to add a column into table that have already containe records and when you introduce a new column with not null that means when new column...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 3, 2012 at 6:38 am
Hi dear
Try to put varchar(20) inside the convert function rather then datetime.
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 3, 2012 at 6:24 am
CREATE TABLE MEMBER
(
MemberID bigint
,ControlID bigint
)
INSERT INTO MEMBER
SELECT 712372226, 20111230108660 UNION ALL
SELECT 712397728, 20111230108661 UNION...
Thanks & Regards
Syed Sami Ur Rehman
SQL-Server (Developer)
Hyderabad
Email-sami.sqldba@gmail.com
January 2, 2012 at 6:05 am
Viewing 15 posts - 1 through 15 (of 48 total)