Viewing 9 posts - 1 through 9 (of 9 total)
select * from xyzTable T1
inner join xyzTable2 T2 on T1.ID=T2.ID
Where...
May 23, 2008 at 7:33 am
To combine the results of two tables or more use the join clause. Lookup left and right join. Most common is the inner, which tells sql only display data when...
May 23, 2008 at 7:21 am
If you're allowing null values but don't want to display a null value to your customers, do this.
select isNull(fld1,'')
or
select isNull(fld1,'N/A')
May 23, 2008 at 7:15 am
If you're allowing nullo values in the field and you don't want to display null values do this.
select fld1,isnull(fld2,'')
or
select fld1,isnull(fld2,'Something')
May 23, 2008 at 7:09 am
As you once did, right JOHNROWAN!
May 22, 2008 at 3:06 pm
In order to use the UNION on a select. The selects must have the same amount of fields. If some don't then use something like this.
select 'A','B','C'
union
select 'A','B',''
May 22, 2008 at 1:06 pm
Instead of manually creating the table import it using dts or ssis.
May 22, 2008 at 12:33 pm
SQL will only return a entire recordset. If you need to inspect some column in each row and do something with the column. You will need to use the FETCH...
May 22, 2008 at 11:48 am
Thanks guys. Heres the answer. I Completely forgot about the case clause.
UPDATE Salaries
SET Salary =
CASE
WHEN (Salary between 30000 and 40000) THEN Salary + 50000
WHEN (Salary...
May 22, 2008 at 10:39 am
Viewing 9 posts - 1 through 9 (of 9 total)