Viewing 15 posts - 16 through 30 (of 149 total)
It's very interesting, because that
DECLARE
@a VARBINARY(20) = 0x10
, @b-2 VARBINARY(20) = 0x1000
, @C VARBINARY(20) = 0x01
, @d VARBINARY(20) = 0x0001;
IF (
May 17, 2016 at 2:49 am
O my God! How much coffee do i need today to recognize a hexa number?:-D
May 11, 2016 at 3:02 am
select
r.ID, r.FULL_NAME, r.FULL_ADDRESS,r.MEMBER_TYPE, r.BIRTH_DATE,
CONVERT (int,DATEDIFF(hour,r.BIRTH_DATE,GETDATE())/8766)as Age,
r.Parent1_FullName,r.Parent1_Cell,r.Parent1_Email,
r.Parent2_FullName,r.Parent2_Cell,r.Parent2_Email
from IMIS.dbo.vw_csys_registrations r
WHERE r.MEETING_TYPE='PADA' and r.MEMBER_TYPE LIKE '%CH'
intersect
select
r.ID, r.FULL_NAME, r.FULL_ADDRESS,r.MEMBER_TYPE, r.BIRTH_DATE,
CONVERT (int,DATEDIFF(hour,r.BIRTH_DATE,GETDATE())/8766)as Age,
r.Parent1_FullName,r.Parent1_Cell,r.Parent1_Email,
r.Parent2_FullName,r.Parent2_Cell,r.Parent2_Email
from IMIS.dbo.vw_csys_registrations r
WHERE r.MEETING_TYPE='TSM' and r.MEMBER_TYPE LIKE '%CH'
order...
February 24, 2016 at 8:22 am
select a.*, (select max(Startdate) from @b-2 b where b.id=a.id and b.StartDate<=a.StartDate) StartDateB from @a a
How the hell shall i type smaller or equal? 🙂
February 8, 2016 at 4:58 am
Shame on me! Session is not equal procedure! :blush:
February 1, 2016 at 1:17 am
Hmm. I thought COALESCE will return the datatype of the leftmost parameter. Learnt something. Thanks.
January 31, 2016 at 1:58 am
It works as long an item occurs only once in an invoice. For me a self join is a better solution:
SELECT distinct
SI_a.invno
FROM
...
December 28, 2015 at 2:13 am
select
id,
date,
page
from
( select
date,
id,
...
December 11, 2015 at 7:00 am
Create a tally table with all needed dates and left join it instead of inner join.
December 11, 2015 at 6:52 am
AND t.StartExport BETWEEN CAST(left(convert(varchar,CURRENT_TIMESTAMP,120),10)+' 16:00:00.000' AS DATETIME) AND CAST(left(convert(varchar,dateadd(day,1,CURRENT_TIMESTAMP),120),10)+' 06:00:00.000' AS DATETIME)
July 7, 2015 at 9:03 am
Viewing 15 posts - 16 through 30 (of 149 total)