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 8453933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:53:34+00:00 2026-06-10T11:53:34+00:00

I want to get the result from the below table like this …, Expected

  • 0

I want to get the result from the below table like this …,

Expected result :

Fldempployee           flddept       Date          Day          Week off 
00625267-Karthick S    Corporate     04-25-2012    Wednesday
                             (or)
00625267-Karthick S    Corporate     04-28-2012    Saturday     Week end
                             (or)
00625267-Karthick S    Corporate     04-29-2012    sunday    Week end
                             (or)
00625267-Karthick S    Corporate     04-27-2012    Friday    

My Table structure like this.

F_id    flddept     fldemployee         fldintime   fldouttime  fldlateafter    fldearlybefore  fldweekoff  fldshiftname        fldassigndate   fldfromdate fldtodate   fldrefid
1       Corporate   00625267-Karthick S 09:30 am    06:15 pm    09:30 am        06:15 pm        Sat,Sun,    COR-General Shift      04-25-2012   04-01-2012  05-31-2012

In fldweekoff column have two values sat and sunday.It may be Mon and wednesday.I want to search a record for a specific date means the above one record displayed like that with the week off field.The specific date is not in week off means it should displayed null value..’

  • 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-10T11:53:36+00:00Added an answer on June 10, 2026 at 11:53 am

    try this

    SELECT Fldempployee,flddept,fldassigndate AS date,DAYNAME(fldassigndate) as day,
    if(SUBSTRING(DAYNAME(date),1,1)=’S’,’weekend’,’weekdays’) as week-off from your_tableName;

    HERE : the day/week-off column is displayed based on the ‘fldassigndate’ column.if you give the fldassigndate(04-25-2012) means it will give you result like this.

    Fldempployee——flddept——-Date——–Day——-Week-off
    00625267-Karthick S Corporate 04-25-2012 Wednesday weekdays
    otherwise please post your query
    Cheers

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

Sidebar

Related Questions

I want to compute result from this table. I want quantity 1 - quantity2
I want to fetch Hierarchical/Tree data something like below from a Table which has
i have one table sql server like below , from that table i want
I want to get the result for the 3 most recent months. and this
I have trouble doing this... You may want to get the same result as
suppose I have a sql like this: select * from tba if table tba
I want to get the remaining/latest balance of the cardnumber from the rows. Below
I want to get results from sparql query and the results contain no namespace.
page contents: aa<b>1;2'3</b>hh<b>aaa</b>.. .<b>bbb</b> blabla.. i want to get result: 1;2'3aaabbb match tag is
I want to get the e.result before it pumps data into my listbox..I want

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.