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

  • SEARCH
  • Home
  • 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 6963055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:44:24+00:00 2026-05-27T15:44:24+00:00

I would like left join an explain statement like this. Actually a need to

  • 0

I would like left join an explain statement like this. Actually a need to retrieve the datatype of column and column is stored in another table named ‘wyspesific’ .

select 
st.segnam as Segment,
st.typnam as 'Sub-Segment',
group_concat(distinct ws.fldnam) as 'Field Tag Name (database)', 
group_concat(distinct ws.fldcap) as 'Field Name Label',
concat('(', group_concat(distinct of.optcap order by of.optcap desc ),')' ) as optionFieldLabel,
concat('(', group_concat(distinct of.optval order by of.optcap desc ),')' ) as optionFieldValue,
ws.isopt as isOptionField
from shiptype st
left join wyspecific ws on ws.wytypid = st.wytypid and ws.enabled = 'Y'
left join optionfields of on of.fldnam = ws.fldnam and of.deleted = 'N'
left join ( explain shipspecific ) as v on ws.fldnam = v.Field
where st.segid in(6,4,8,9,10,11,12 ) and ws.enabled = 'Y'
group by ws.fldid
order by st.segid

Any suggestion or ideas would be greatly appreciated.

Thanks a lot.

  • 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-05-27T15:44:24+00:00Added an answer on May 27, 2026 at 3:44 pm

    You should pull this information from INFORMATION_SCHEMA.COLUMNS instead:

    SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='shipspecific' AND TABLE_SCHEMA=DATABASE()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it would be like this : <div id=map_canvas style=width: 500px; height: 300px;float:left;></div> left:(<=300) top:(<=500)
Would like to know the c# code to actually retrieve the IP type: Static
I have a question regarding left join on SQL: I would like to know
I would like to check, is it possible to left join two tables using
I would like to join several times with the same table function for different
I would like to join the same table 4 times to get columns way
Would like to get a list of advantages and disadvantages of using Stored Procedures.
I would like to do an inner join on my database in my Android
I would like to try using Outer Join to find out duplicates in a
I would like to join results returned in the set in MySQL with a

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.