Forum Replies Created

Viewing 15 posts - 181 through 195 (of 250 total)

  • RE: Need help with DELETE

    What if I needed to use Wildcards in my OR conditions:

    SELECT firstname, lastname from Teacher_data_main

    WHERE

    (Firstname like 'F%'

    or

    Firstname like 'B%'

    or

    Firstname like 'C%')

    AND

    Schoolnum = 371

    Thanks!

    CSDunn

  • RE: Need help with DELETE

    Thanks for this input. I have seen this technique before, but I will document it this time.

    CSDunn

  • RE: Need help with DELETE

    Exactly. In this case, I took the records I intended to delete, and inserted them into a 'backup' table. Also, I worked through the senario working with the data in...

  • RE: Need help with DELETE

    Thanks for your help! I had not used Delete in this way before, and so I took a look at BOL after performing the Delete.

    CSDunn

  • RE: Cross-Tab Question

    I was looking for and  idea  make a report in a client application work, but I have come up with another idea that will incorporate two cross-tab SQL Server reports that...

  • RE: Question about IDENTITY

    IDENTITYCOL...That's what I was thinking of, and I was not able to find this in BOL. I was able to find it in the MS Press book 70-229.

    Thanks for your...

  • RE: Problem with Linked Server

    Thanks for the link to further details on how to set this up. As it turns out, security on the objects in the Access database were not being enforced. I...

  • RE: Problem with Querying Dates

    Thanks for your help!

    CSDunn

  • RE: FOREIGN KEY on Temporary Table?

    Thanks for the resource!

    CSDunn

  • RE: Question About DEFAULT

    'WITH VALUES'  is what I was looking for! I had seen it before, but I could not locate this in BOL.

    Thanks for your help!

    CSDunn

  • RE: Problem with NOT EXISTS

    Thanks! As it turns out, I had tried setting the fields equal, but was using a 'DateEntered' field that was set up as a default of GETDATE() on the table...

  • RE: Problem with Aggregates

    Never mind, I got it:

    "TestScore" = 100 * SUM(CAST(TS.Score AS INT))/COUNT(TS.Score)

  • RE: INSERT Problem

    quote:


    I believe that select into is a non-logged operation.


    I think SELECT INTO...

  • RE: Convert Columnar Data to Row Data

    quote:


    When you use "(" in the FROM clause, you HAVE to ALIAS the inline view!!


  • RE: Convert Columnar Data to Row Data

    quote:


    SELECT

    Grade,

    TestID,

    Permnum,

    QID,

    CA,

    SA,

    QuestionNumber,

    CASE WHEN SA=CA THEN 1 ELSE 0 END as VALID,

    CASE WHEN SA IS NULL THEN 'B'

    ...

Viewing 15 posts - 181 through 195 (of 250 total)