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
Goran Bibic
482
2.9k
198.1k
Insert into from one to another table with different value
Apr 7 2020 2:14 PM
I try to explane
I have this
INSERT
INTO
dbo.nalog_knjizenje_stavke (redni_broj, konto, naziv_konta, duguje, potrazuje, id_fakture)
select
ROW_NUMBER() OVER (
ORDER
BY
redni_broj), konto, naziv_konta,
'0.00'
,
'0.00'
, (
select
MAX
(id)
from
dbo.nalog_knjizenje_lista)
as
id_fakture
from
dbo.kontni_plan
where
broj_dokumenta = 2301
Result is next
That is ok.
Now question, ho to put inside differtent value in last two column when are different column konto.
Every my result not ok
Need help and need result to be example
Thank you
Reply
Answers (
1
)
Select from multiple tables
Get difference of salary row by row ?