Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SQL SCRIPT

SQL SCRIPT

Scheduled Pinned Locked Moved C#
databasequestiontools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kibromg
    wrote on last edited by
    #1

    Hi All, I have tables called CALL and Operator. Select Distinct(Mobile),MIN(DATE_OF_CALL),NAME_OPERATOR from Call inner Join Operator on Call.CustomerId=Operator.CustomerID where Datename(month,DATE_OF_CALL)='APRIL' Group by Mobile What i want is to get the first date of entry for each Mobiles in the month of april and the operator who attended them. However i Have to group by Name_operator to run the above script.But i dont want them to be grouped by OPerator.I want the first entry of a mobile in the database together with the name of the operator who attended them. How do i go about it Please? Thank you so much.

    M 1 Reply Last reply
    0
    • K kibromg

      Hi All, I have tables called CALL and Operator. Select Distinct(Mobile),MIN(DATE_OF_CALL),NAME_OPERATOR from Call inner Join Operator on Call.CustomerId=Operator.CustomerID where Datename(month,DATE_OF_CALL)='APRIL' Group by Mobile What i want is to get the first date of entry for each Mobiles in the month of april and the operator who attended them. However i Have to group by Name_operator to run the above script.But i dont want them to be grouped by OPerator.I want the first entry of a mobile in the database together with the name of the operator who attended them. How do i go about it Please? Thank you so much.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Do NOT cross post, you were right with the database forum - cross posting to here is RUDE!

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups