Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:41:38+00:00 2026-06-13T00:41:38+00:00

I am trying to create a work-flow with the help of SQL CE Database.

  • 0

I am trying to create a work-flow with the help of SQL CE Database.

**Usr Table**
UID    FName    LName
 1      Tim      Lake
 2      June     Stone

**WFlow Table**
fID    Topic    InitBy    ApprovBy    PostedBy
1      Topic 1   2         NULL        NULL
2      Topic 2   1         NULL        NULL

UID and fID are Primary Keys and InitBy, ApprovBy, PostedBy are Foreign Keys linked to UID.

Now once the first topic is created fID=1, Topic=Topic 1, InitiBy=2, ApprovBy=NULL, PostedBy=NULL.

my SQL CE query looks like this.

Select WF.fID, WF.Topic, 
U1.FName + U1.LName as InitiBy,
U2.FName + U2.LName as InitiBy,
U3.FName + U3.LName as InitiBy,
from WFlow WF, Usr U1, Usr U2, Usr U3
where W.InitiBy = U1.UID
and W.ApprovBy = U2.UID
and W.PostedBy = U3.UID

This query returns no result. I am not able to handle the NULL in the ApprovBY and PostedBy columns.

appreciate your help.

Thanks,

i would also like to know how different the query will be in mySQL. in SQL-CE someone was able to help with the LEFT JOIN clause. but it does not seem to work in mySQL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:41:39+00:00Added an answer on June 13, 2026 at 12:41 am

    You need to use LEFT JOIN for this

    Select  WF.fID, WF.Topic, 
            U1.FName + ' ' + U1.LName as InitiBy,
            U2.FName + ' ' + U2.LName as ApprovedBy,
            U3.FName + ' ' + U3.LName as PostedBy
    from    WFlow WF 
            LEFT JOIN Usr U1
                ON WF.InitBy = U1.UID
            LEFT JOIN Usr U2
                ON WF.ApprovBy = U2.UID
            LEFT JOIN Usr U3
                ON WF.PostedBy = U3.UID
    

    SQLFiddle Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a data flow in SSIS to help me upload a
I'm trying to create a work flow that will send an email to the
Im trying to create a hive provider that would be able to work towards
I'm trying to create User Control which will work like a rich button. It's
Im trying to create a server/client application that will work on two or more
I'm trying to create cookie from one folder that will also work in another.
I'm trying to create a C++ class which can work as a holder for
I'm trying to create a large, multi-page, PHP web application for work where a
I configured rails to work fine with Rails 3. I am trying to create
I am trying to create an SSIS package that queries data from a table,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.