Viewing 15 posts - 16 through 30 (of 35 total)
The solution for such problems is obtained by using the aggreggate functions.
The required results can be obtainted by writing the query as below:
select id,total=sum(a+b,c) from table group by id
November 15, 2006 at 3:22 am
There are different ways which you can use to delete duplicate values from a table.
If the data in your table is not huge .You could use the steps discussed in...
November 6, 2006 at 4:29 am
Control-M batch scheduler is a enterprise batch management solution that is used to run and mantain external jobs .
This is a product developed by BMC Software .
August 24, 2005 at 10:10 am
alternatively u can use the substring function to get the strings
July 15, 2005 at 8:22 am
Hi Amie,
You can restrict the columns available to the user by granting select permissions only on the column of the view to the user.
E.g.
Grant select on xyzview(empid,empname) to abcuser
Hope this...
June 9, 2005 at 1:30 am
I dont there should be any problem for you getting the resultset .
Sample query ....
select * from emp e (nolock)
inner join room b (nolock) on
e.emproomno=b.roomno inner join
device d...
February 8, 2005 at 8:55 am
This can be done but the query generated will be dynamic and has to be exceuted using the Execute Command
for eg:
if you want to retrieve the count from a...
February 8, 2005 at 7:07 am
Iam afraid any such solution is inbuilt in SQL server.
I would suggest that you can create a User defined function for encrypting and decrypting the data .
December 30, 2004 at 5:12 am
Very Simple Just change the Statement from
IF @intGWFSSeqNbr = NULL
To
IF @intGWFSSeqNbr IS NULL
This will work for you.
Do let me know if you have any further queries
December 24, 2004 at 1:04 am
Yeah I totally agree with SQL does things better than what Oracle does.My article is aimed at novice SQL developers who can find the script very convinent in situations wherein...
December 20, 2004 at 6:39 am
SQL doesnot allow you to use derived column names in the where clause.
You will have to repeat the formula in the where clause
December 14, 2004 at 5:19 am
Can you please let me know what information you are looking into.
If you need the column information for a table you can obtain the same from the SYSCOLUMNS system table.
You...
December 13, 2004 at 7:42 am
I believe leaving the connection object open till the end is a good idea.
Once all the processes is done set connection to nothing so that the connection is destroyed .
December 13, 2004 at 7:36 am
Hi ,
The solution for your problem could be obtainted by the query below :
select a.id ,a.first_name from
table2 a
where
a.result='fail'
and a.id not in (select id from
table2 where id=a.id and...
December 11, 2004 at 7:07 pm
It would always be beneficial to use stored procedures.
In case when you have two databases A and B residing on the same server.
Lets consider we have Employee table on Database...
December 11, 2004 at 5:28 am
Viewing 15 posts - 16 through 30 (of 35 total)