Forum Replies Created

Viewing 15 posts - 316 through 330 (of 354 total)

  • RE: Doing a count on characters within a string

    brilliant,

    It works, I used the following within my query...

    ,

    (datalength(wk.SESS_PER_WEEK) - datalength(replace(wk.SESS_PER_WEEK, 'X', ''))) as 'X',

     (datalength(wk.SESS_PER_WEEK) - datalength(replace(wk.SESS_PER_WEEK, '/', ''))) as '/',

     (datalength(wk.SESS_PER_WEEK) - datalength(replace(wk.SESS_PER_WEEK, '\', ''))) as '\',

     (datalength(wk.SESS_PER_WEEK) - datalength(replace(wk.SESS_PER_WEEK, '#',...

  • RE: Doing a count on characters within a string

    Hi,

    Thanks for that. I dont really want to go the temporary table route because I have got throusands of records that I need to do this too and then...

  • RE: Linked table issues.

    Thanks for that,

    Its good to know that someone else has had the same problem with this too. I did it  very simply by just making a table from the original...

  • RE: Linked table issues.

    Hello again,

    Its very strange, filters just dont work but I do a MAKE table from the linked table and the filters work fine so this is how I have resolved...

  • RE: Exporting data to cvcs and txt issues with lengths over 255

    Brilliant,

    Thanks you so much for that. I knew there was going to be an option somewhere but I wouldnt have found that one for a long time.

    Everything is exporting properly...

  • RE: DATENAME using week as the datepart

    Ah ha,

    Not sure how I managed it but I used -1 against the query and this works fine.

     

    Thanks

    Debbie

  • RE: where one field is NULL

    Just tried it and it works which is great because now I can exchange my <> clause in all my tables where I may have problems because of NULL fields.

    Just...

  • RE: where one field is NULL

    Thanks for that,

    I tried the above but didnt get any results back.

    SELECT ID.MNAME, sd.*

    FROM dbo.Import_FULL sd INNER JOIN #ATTENDANCES_a ID

    ON  sd.Forename = ID.FNAME AND sd.DateOfBirth = ID.DOB AND sd.Surname = ID.SNAME

    AND sd.DFES...

  • RE: where one field is NULL

    Thanks for that. I was hoping to not go for an outer join though in this case. Maybe a conversion or something in the where clause to convert all Nulls...

  • RE: Deleting from atable

    I have used that but Ive deleted all the 10 records rather than just the 5 records where the FROM date is earlier than the other from date.

     

    Whoops, Ill have...

  • RE: Deleting from atable

    Excellent,

    This might be better for me. I will try and get this into my query and let you know how it goes.

    Debbie

  • RE: Deleting from atable

    Thanks for that. I will give it a go!

    Debbie

  • RE: Query to bring back a record with the highest date from a column

    Thanks for that,

    It looks a bit scary,but I will definitely give it a go!

    Debbie

     

     

  • RE: Query to bring back a record with the highest date from a column

    I cannot thank you enough. Its worked perfectly. Although now I need to sort out all those records where there is an open attendance (WHERE PAT_TO_DATE IS NULL) which should...

  • RE: Query to bring back a record with the highest date from a column

    I cannot thank you enough. Its worked perfectly. Although now I need to sort out all those records where there is an open attendance (WHERE PAT_TO_DATE IS NULL) which should...

Viewing 15 posts - 316 through 330 (of 354 total)