SQL Query Select All fields with formatting

SQL Query Select All fields with formatting

I need to write SQL query to select all the fields from table1 with formatting few fields , Table 2 with formatting few fields.

How can I do that ?

For instance the field swith date and time will be formatted with the function UTCBigintToUTCTime"(startTime)

size in Bytes will be formated (will be divided by 1000) to get Kilobytes

the rest of the fields will not be formatted with the select query



Thank you
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

YZlatCommented:
No way around it, you will have to list all the fields in your select list
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill PrewCommented:
Depending on the tool you are using (SSMS, TOAD, SQL Developer, ...) most of these have the ability to generate a query from a table, so they can build the query and put in all the column names, and then you just adjust the formatting on the select few.


»bp
0
jskfanAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.