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. Database & SysAdmin
  3. Database
  4. SQL

SQL

Scheduled Pinned Locked Moved Database
databasesalesquestion
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.
  • A Offline
    A Offline
    Aparna B
    wrote on last edited by
    #1

    i need solution for this question. the question is given below : Print the information of invoice table in the following format for all records – The Invoice No. of Customer Id. {cust_id} is {inv_no} and Movie No. is {mv_no)

    K 1 Reply Last reply
    0
    • A Aparna B

      i need solution for this question. the question is given below : Print the information of invoice table in the following format for all records – The Invoice No. of Customer Id. {cust_id} is {inv_no} and Movie No. is {mv_no)

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      SELECT 'The Invoice No. of Customer Id. ' + Cast(cust_id AS Varchar(100)) + ' is ' + Cast(inv_no AS Varchar(100)) + ' and Movie No. is ' + Cast(mv_no AS Varchar(100)) FROM TableA Assuming all the three columns are are numeric (Cust_id, Inv_no, mv_no

      Regards KP

      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