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. problem with creating view?

problem with creating view?

Scheduled Pinned Locked Moved Database
helptutorialquestion
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.
  • S Offline
    S Offline
    shankbond
    wrote on last edited by
    #1

    Hi, I need help with gridview? actually the gridview is supposed to show a view(aka join) consisting of two tables . In my case I have (userid) , (money deposited) as fields in table 1; userid can also be left as null. I have another table I have first_name, last_name,phone numbers( fields) in table2 I want to display first_ name ,money deposited. in the gridview. It has to show all the enteries made in table 1 either it is null or has some userid; if it becomes null , then a space should appear instead of displaying null. can anyone please guide me how to do this? thanks

    A 1 Reply Last reply
    0
    • S shankbond

      Hi, I need help with gridview? actually the gridview is supposed to show a view(aka join) consisting of two tables . In my case I have (userid) , (money deposited) as fields in table 1; userid can also be left as null. I have another table I have first_name, last_name,phone numbers( fields) in table2 I want to display first_ name ,money deposited. in the gridview. It has to show all the enteries made in table 1 either it is null or has some userid; if it becomes null , then a space should appear instead of displaying null. can anyone please guide me how to do this? thanks

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      try something like this - I have to assume that userid appears in table3 also, therwise this is no way to join them select isnull(first_name,' '), [money deposited] from table1 t1 left outer join table2 t2 on t2.userid = t1.userid

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      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