TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
281.3k
How to generate string json formate to this case ?
Sep 21 2019 1:19 AM
I need to make json string formate suitable to select statement as following :
select FooterTable.LineNumber,FooterTable.ItemCode,FooterTable.Quantity,FooterTable.UniPrice,FooterTable.Total from
MasterTable inner join FooterTable on MasterTable.Serial=FooterTable.Serial,MasterTable.BranchCode=FooterTable.BranchCode,MasterTable.Year=FooterTable.Year
where MasterTable.Serial=10 AND MasterTable.Year=2019 AND MasterTable.BranchCode=1
No need for code by any language
only string fomate like that
{
xxxx
}
MasterTable
Serial pk
Year pk
BranchCode pk
FooterTable
Serial pk
Year pk
BranchCode pk
LineNumber
ItemCode
Quantity
UniPrice
Total
How to generate json string as following :
Fields : LineNumber,ItemCode,Quantity,UniPrice,Total specified all fields from FooterTable no fields from MasterTable .
Keys : Serial:10,Year:2019,BranchCode:1 from MasterTable .
Tables:MasterTable,FooterTable .
so that how to generate json format string to my requirment above
Reply
Answers (
1
)
how can i get data from database SQL using this Technology
What is the best approach to Convert DataTable into .CSV