Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
deathrone
Starting Member
15 Posts |
Posted - 2013-06-06 : 09:12:08
|
Hello,Ive got 2 accounts, which are connected to one data base.1 account: I can select data from table "A" and create temporary tables2 account: I can select data from table "B"I wanna compare table A with table B, how to do that ? I've heard bout grant but donno how to use it... I'm tryin it in many ways but does'nt worktrololoolo |
|
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2013-06-06 : 09:32:01
|
try this?if u have select permission on both tablesselect * from account1.tableAminus/exceptselect * from account2.tableB (both tables should have same number and compatible columns)select * from account2.tableBminus/exceptselect * from account1.tableAif both of them give empty result sets then both tables are exactly same data.if u don't have select permission then owner of TableA/TableBshould grant Select permissions to you likeGrant select on account1.tableA to (your username) Grant select on account2.tableB to (your username)Thanks..M.MURALI kRISHNA |
 |
|
deathrone
Starting Member
15 Posts |
Posted - 2013-06-06 : 09:51:43
|
thx, i was lookin for dat "grant" part...so i'm typin this:grant select on account1.tab_A to (user)but there problem occures "the username is invalid... How to check my username ?trololoolo |
 |
|
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2013-06-06 : 10:17:43
|
Try this?select user from dual;orShow userAnyway this is Sql server forum good to post this in Oracle forums..Thanks... M.MURALI kRISHNA |
 |
|
|
|
|