Is this a valid join?
(Tablenames changed to protect business secrets).
SELECT MC*
FROM MainCustomers MC,
ProductsMade PM,
OrderLog OL
WHERE PM.SERIAL_NBR = OL.SERIAL_NBR
AND Mc.McId = OL.McID
AND Mc.ProductID = PM.ProductID
I was asked to translate the above WHERE-based join to the modern TSQL inner join syntax. At first it sounded easy but then I got confused as to whether it violates proper joining protocol. For example suppose I wrote the following.
Select * from t1
inner join t2 on t1.id = t2.id
inner join t3 on t3.id = t2.id
inner join t1 on t1.id = t3.id <---- Huh?
The last line is objectionable because both t1 and t3 were already added to the join in the first few lines so how can we 'join' them again on the last line?
So my question is, isn't the above query making the same mistake? The WHERE clause seems to do the following joins:
PM --> OL
MC---> OL
MC-->PM (Huh? Re-joined?)
The tables don't have any sample data right now, maybe I can whip some up shortly.
Ok that's very enlightening. I honestly thought an Inner Join clause was only intended for two tables. Your example is showing three tables
inner join t3 on t3.id = t2.id AND t1.id = t3.id
I had no idea that was appropriate joining protocol.
yes, you can do that.. I would use it only if it helps to narrow down on the data and get you the data you want.. other wise do not worry on t1.id=t3.id, it would be an unneccssary join..
declare @table1 table (sno int,sname varchar(20))
declare @table2 table (sno int,sname varchar(20),sid1 int)
declare @table3 table (sno int,sname varchar(20))
insert into @table1 values (1,'table1'),(2,'table2'),(3,'table3'),(4,'table4')
insert into @table2 values (1,'table1',1),(2,'table2',2),(2,'table5',5)
insert into @table3 values (1,'table1'),(2,'table2'),(5,'table5'),(3,'table3')
select *
from @table1 A
INNER JOIN @table2 B on A.sno=B.sno
INNER JOIN @table3 C on C.sno=B.sid1 and C.sno=A.sno
select *
from @table1 A
INNER JOIN @table2 B on A.sno=B.sno
INNER JOIN @table3 C on C.sno=B.sid1
Hope it Helps!!
I like this answer the best due to the sample data you provided. Thanks!
Similar Messages
-
How to Do This In a Join Not A Subquery
I have two tables:
USERS
user_id
fname
lname
USER_SITES
user_id
site_id
confirmed
There is a one to many relationship between USERS and USER_SITES (a user can belong to many sites).
I am looking for a query that will return only users who are a member of site_id=2, not site_id=4. The following subquery does the trick:
select * from USERS where user_id in (select user_id from USER_SITES where site_id=2) and user_id not in (select user_id from USER_SITES where site_id=4);
...but I would like to do this using only JOINS (they are generally faster....and also its kind of frustrating me that I cannot figure out how to do it in a join).Second attempt.
with users as
select 1 as user_id, 'a' as fname, 'b' as lname from dual union all
select 2 as user_id, 'a' as fname, 'b' as lname from dual union all
select 3 as user_id, 'a' as fname, 'b' as lname from dual
user_sites as
select 1 as user_id, 2 as site_id from dual union all
select 2 as user_id, 4 as site_id from dual union all
select 3 as user_id, 2 as site_id from dual union all
select 3 as user_id, 4 as site_id from dual
-- end of test data
select user_id, fname, lname from
select u.user_id,
u.fname,
u.lname,
max(site_id) over (partition by u.user_id) as m
from users u
join user_sites s on u.user_id = s.user_id
where s.site_id in (2,4)
where m = 2;
USER_ID FNAME LNAME
1 a b Edited by: Cyn on Feb 23, 2010 2:46 PM
Edited by: Cyn on Feb 23, 2010 3:02 PM -
I'm unable to install Itunes on my new PC. I'm logged in as the administrator And have deleted my browsing history. This is the error I get, ITunes installation error- “This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this a valid Windows Installer package”... Any suggestions how to fix?
Hi
Try the following:
Uninstall iTunes and Quicktime
Reboot
in the task tray right click the quicktime icon and click exit.
navigate to the folder in program files and remove the quicktime directory and all its files.
Reboot.
Now try install iTunes and quicktime and it should work
Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Need code for this Small validation on when-validate-item
Hi All,
I have a text item(date datatype) in forms 4.5 I need to do a small validation want to write on when-validate-item. When I enter a date in that text item (Ex 10-JUN-2005) it has to check
1) It Cannot be "blank"
2) It cannot be "Not older than today"
can you please put me code for this small validation. I am new to Forms.
Thanks in Advance,
ReddyI always put code in the when-validate-RECORD trigger to ensure fields are entered, rather than setting the property. That way, the user can enter other fields within the record, and then gets a message that the field is required only when leaving the record.
...of course, if the date item is the only field in the block, then the when-validate triggers will not run unless the user at least types a space in the date. In that case, you need to check in the key-commit trigger. -
Failed to detect if this server is joined to a server farm
Hi,
We run our intranet on a virtual server. the other day it crashed and we restored it from a previous point
However when we launch the intranet we just get a an unexpected error has occurred. I am able to get into central admin but that's about it
I though of maybe running the product config wizard but it get an error saying "failed to detect if this server is joined to a server farm. Possible reasons for this failure could be that you no longer have the appropriate permissions to the server
farm, the database server hosting the server farm is in responsive, the configuration database is inaccessible or this server has been removed from the server farm"
this is what the logs it tell you to look in says:01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the server string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseParameterDatabaseHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseParameterDatabaseHelp is The configuration database name.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Common.CreateUniqueGuidString
01/30/2014 10:03:01 1 INF Leaving function Common.CreateUniqueGuidString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseDatabaseNameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseDatabaseNameLabel is D&atabase name:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationDatabaseNameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationDatabaseNameLabel is database name
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the database string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseParameterAdminContentDatabaseHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseParameterAdminContentDatabaseHelp is The Central Administration Web Application content database name.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Common.CreateUniqueGuidString
01/30/2014 10:03:01 1 INF Leaving function Common.CreateUniqueGuidString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is AdminContentDatabaseNameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id AdminContentDatabaseNameLabel is Central Administration Web Application content database name:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is AdminContentDatabaseValidationDatabaseNameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id AdminContentDatabaseValidationDatabaseNameLabel is Central Administration Web Application content database name
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the admincontentdatabase string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseParameterSqlAuthenticationUserHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseParameterSqlAuthenticationUserHelp is The SQL server user name used for SQL authentication.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseUsernameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseUsernameLabel is Sql database user:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationUsernameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationUsernameLabel is Sql database user
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the dbuser string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseParameterSqlAuthenticationPasswordHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseParameterSqlAuthenticationPasswordHelp is The SQL server password used for SQL authentication.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabasePasswordLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabasePasswordLabel is Sql database password:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationPasswordLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationPasswordLabel is Sql database password
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the dbpassword string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is FarmUserAccountHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id FarmUserAccountHelp is Server farm administrator user account.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseFarmUsernameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseFarmUsernameLabel is &Username:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationFarmUsernameLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationFarmUsernameLabel is username
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the user string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is FarmUserAccountPasswordHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id FarmUserAccountPasswordHelp is Server farm administrator user account password.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseFarmPasswordLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseFarmPasswordLabel is &Password:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationFarmPasswordLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationFarmPasswordLabel is password
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the password string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is MasterPassphraseHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id MasterPassphraseHelp is Passphrase used to join the server farm. Note: this must be identical on all the server farm machines.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseMasterPassphraseLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseMasterPassphraseLabel is Passp&hrase:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationMasterPassphraseLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationMasterPassphraseLabel is passphrase
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the passphrase string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeOrParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ActiveDirectoryDomainParameterHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ActiveDirectoryDomainParameterHelp is Active Directory domain name used for the server farm.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseActiveDirectoryDomainLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseActiveDirectoryDomainLabel is Active Directory Do&main:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationActiveDirectoryDomainLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationActiveDirectoryDomainLabel is Active Directory Domain
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the addomain string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ActiveDirectoryOrganizationUnitParameterHelp for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ActiveDirectoryOrganizationUnitParameterHelp is Active Directory organization unit name used for the server farm.
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseActiveDirectoryOrganizationUnitLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseActiveDirectoryOrganizationUnitLabel is Active Directory Or&ganizational Unit:
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseValidationActiveDirectoryOrganizationUnitLabel for language English (United States)
01/30/2014 10:03:01 1 INF Resource retrieved id ConfigurationDatabaseValidationActiveDirectoryOrganizationUnitLabel is Active Directory Organizational Unit
01/30/2014 10:03:01 1 INF Leaving function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Entering function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Initialze
01/30/2014 10:03:01 1 INF Leaving function Parameter.Parameter
01/30/2014 10:03:01 1 INF Entering function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Creating the adorgunit string exposed parameter
01/30/2014 10:03:01 1 INF Leaving function StringExposedParameter.StringExposedParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddExcludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Leaving function Parameter.AddIncludeParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter create to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry create to collection.
01/30/2014 10:03:01 1 INF Adding object with value create to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter disconnect to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry disconnect to collection.
01/30/2014 10:03:01 1 INF Adding object with value disconnect to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter connect to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry connect to collection.
01/30/2014 10:03:01 1 INF Adding object with value connect to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter server to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry server to collection.
01/30/2014 10:03:01 1 INF Adding object with value server to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter database to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry database to collection.
01/30/2014 10:03:01 1 INF Adding object with value database to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter dbuser to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry dbuser to collection.
01/30/2014 10:03:01 1 INF Adding object with value dbuser to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter dbpassword to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry dbpassword to collection.
01/30/2014 10:03:01 1 INF Adding object with value dbpassword to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter user to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry user to collection.
01/30/2014 10:03:01 1 INF Adding object with value user to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter password to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry password to collection.
01/30/2014 10:03:01 1 INF Adding object with value password to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter passphrase to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry passphrase to collection.
01/30/2014 10:03:01 1 INF Adding object with value passphrase to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter addomain to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry addomain to collection.
01/30/2014 10:03:01 1 INF Adding object with value addomain to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter adorgunit to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry adorgunit to collection.
01/30/2014 10:03:01 1 INF Adding object with value adorgunit to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function Command.AddParameter
01/30/2014 10:03:01 1 INF Adding parameter admincontentdatabase to command configdb
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Adding entry admincontentdatabase to collection.
01/30/2014 10:03:01 1 INF Adding object with value admincontentdatabase to the collection
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.Add
01/30/2014 10:03:01 1 INF Leaving function Command.AddParameter
01/30/2014 10:03:01 1 INF Entering function CommandCollectionBase.CommandCollectionBase
01/30/2014 10:03:01 1 INF Leaving function CommandCollectionBase.CommandCollectionBase
01/30/2014 10:03:01 1 INF Entering function Command.Command
01/30/2014 10:03:01 1 INF Leaving function Command.Command
01/30/2014 10:03:01 1 INF Entering function StringResourceManager.GetResourceString
01/30/2014 10:03:01 1 INF Resource id to be retrieved is ConfigurationDatabaseParameterNoInstallCheckHelp for language English (United States) -
When I got on Safari I got a warning that my apple firewall has crashed. It said to call Apple Support at 1-855-582-0026. Is this a valid tech # or am I being scammed?
The same thing just happened to me. I almost fell for it. Why did this message appear in Safari in the first place and should any precautions be taken?
-
I got a message that my passcode has expired. I never had this happen before. It asks me to enter it instead of using the keypad. Is this a valid request? or is somebody phishing?
If this is an email it is a scam and you should ignore it.
-
Isn't this a valid way to write queries ?
Guys,
Please can you let me know if this is valid way of writing the query. I seem to get an error saying missing right parenthesis when i try to execute it. But the queries work individually.. I want to use it something like an inline view
Cheers
G
select x.user_id,x.MONTH,x.tickets,x.total_bet_amount,y.p1,y.p2,y.p10,y.p25,y.p50 from (
(SELECT /*+ PARALLEL(d,8) PARALLEL(b,8) */
b.user_id ,
to_char(d.date_gameplay_started, 'Mon-RRRR') AS "MONTH",
count(d.date_gameplay_started) AS "TICKETS",
-- e.game_type AS "GAME",
sum(d.total_bet_amount) as TOTAL_BET_AMOUNT
FROM production.gl_user_registrations a,
production.gl_user_game_sessions b,
production.vf_game_parameters c,
production.gl_user_game_play_summarys d,
production.vf_game_parameters e
WHERE b.game_configuration_id = c.parameters_id
AND b.user_game_session_id = d.user_game_session_id
AND d.game_configuration_id = e.parameters_id
AND b.user_id = a.user_id
and d.date_gameplay_started between TO_DATE('01/11/2006', 'dd/mm/rrrr') and TO_DATE('01/12/2006', 'dd/mm/rrrr')
AND a.registration_site IN ('ladbrokes.com')
group by b.user_id,
to_char(d.date_gameplay_started, 'Mon-RRRR')
ORDER BY b.user_id,
"MONTH",
"TICKETS"
) x,
(select user_id, count(decode(bet_amount,0.01,user_id)) p1,
count(decode(bet_amount,0.05,user_id)) p5,
count(decode(bet_amount,0.1,user_id)) p10,
count(decode(bet_amount,0.25,user_id)) p25,
count(decode(bet_amount,0.50,user_id)) p50
from production.gl_bet_transactions gbt
where date_inserted between TO_DATE('01/11/2006', 'dd/mm/rrrr') and TO_DATE('01/12/2006', 'dd/mm/rrrr')
group by user_id) y
where x.user_id = y.user_idThanks guys.. This is sorted.. I guess i missed a right parenthesis in FROM
Cheers -
Itunes store show this message "validation code incorrect"
tunes store show this message "validation code incorrect"
You can't, gift cards and certificates are country-specific, so US cards/certificates can only be redeemed in the US on US-based iTunes accounts.
If it's a gift certificate then your friend could try sending it to a fellow US-account holder, or he/she could contact iTunes support and see if they will refund/credit him/her.
If it's an Tunes gift card then you could either sell/give it to somebody in the US or send it back to your friend. -
I was send an email via apple stating that I need to update my credit card information or my account will be cancelled in 48hours. Is this a valid email or fraud. I had the iphone for more than 2 years and did not receive a similar email
It's a phishing attempt to get your account and payment details (Apple don't send emails like that) . If you still have the email then you could forward it to Apple : [email protected]
-
HT201232 Is this a valid APPLE email?
Is this a valid APPLE email?
Apple Service [email protected]
Deαr Αpple Custοmer,
We infοrm yοu that yοur accοunt is abοut tο expire in less than 3 days, it is imperative to perfοrm a Verificαtion οf yοur infοrmαtion frοm nοw, οtherwise yοur accοunt will be sυspended. Just click the link belοw and using yοur Αpple ID and pαsswοrd.
Update Now
Wοndering why yοu gοt this emαil?
The sending οf this emαil αpplies when the expirαtiοn dαte of yοur accοunt expires.Fοr mοre infοrmαtion, see our frequently αsked questiοns.
Thαnks,
Αpple Custοmer Suppοrt
Cοpyright © 2014 Αpple Inc. Αll rights reserved.No. Do not click on any links and take the appropriate action as suggested here.
Identifying fraudulent "phishing" email - Apple Support -
SQL Select - Is this logic valid?
Hello guys,
I was wondering if anyone can tell me if my query is valid or not? [This is an exercice, it's not something really critical].
Let suppose I have 2 tables (Organizations and Employees). I would like to retrieve all the organizations with only one fake person under.
CREATE TABLE ORGANIZATIONS
id_organization number(10) primary key,
name varchar2(100) not null
CREATE TABLE EMPLOYEES
id_employee number(10) primary key,
id_organization number(10),
name varchar2(100) not null,
is_fake char(1)
insert into organizations values(1, 'Org 1');
insert into organizations values(2, 'Org 2');
insert into employees values(1, 1, 'Emp 1', 1);
insert into employees values(2, 1, 'Emp 2', 0);
insert into employees values(3, 1, 'Emp 3', 0);Is this query correct ?
I mean, does this query returns the correct result? All the organization with only one fake person under?
SELECT a.id_organization, b.id_employee
FROM ORGANIZATIONS a
LEFT JOIN EMPLOYEES b ON a.id_organization = b.id_organization
WHERE b.is_fake = 1;Thanks,Hi,
Thanks for posting the sample data in such a useful form!
Don't forget to post the results you want from that data.
Does your problem cioncern finidng out if there is exactly one fake in a given organization, as there is in id_organization=1? If so, maybe you should add some more data so you can compare results with an organization that has more than one fake employee, like this:
insert into employees (id_employee, id_organization, name, is_fake)
values (21, 2, 'Fake 21', '1');
insert into employees (id_employee, id_organization, name, is_fake)
values (22, 2, 'Fake 22', '1');
insert into employees (id_employee, id_organization, name, is_fake)
values (23, 2, 'Real 23', '0');If someone posts a solution, and it doesn't work, point out exactly where it is wrong, and explain how you get the right results in those places.
What is wrong with Karthick's solution? -
Is this a valid syntax for main() function
hi
here is a very basic question...
is this signature a valid entry point to an application..?
public static int main(String[] arg)
i compile it and it gives me no error but when i run it, it throws an exception in main...
I am asking this question because one of the certification books has a question which says that this is a valid signature.
please do let me know ur comments...
thanks a lot.thanks for all the replies....
it compiles and here is the run time error that i get
Exception in thread "main" java.lang.NoSuchMethodError: main
also the book is Complete Java2 Certification study guide 2nd Ed Sybex
chapter 1, page 26, question 3.
which of the following sig. are valid for the main() method entry point of an application
a> public static void main()
b> public static void main(String arg[])
c> public void main(String[] args)
d> public static void main(String [] arg)
e> public static int main(String [] arg)
so the answers shud be b,d and not b,d,e right?
thanks -
Hello I have this email requesting to update account information.Was wondering if it is a valid request or fraudulent?
Apple will never, except for some customer surveys which will never ask for personal information, never uses a domain other than their own apple.com domain, and never asks you for account information in an email. As stedman said, it's a phish. Delete it and do not respond to it in any way.
Regards. -
Can I rewrite this as semi join ?
Hi,
I hate queries like this:
select distinct t1.col1 from t1 , t2
where
t1.pk = t2.fk
I'm always trying to rewrite that as semi-join like
select t1.col1 from t1
where
t1.pk in (select t2.fk from t2);
but now I've got something like this:
SELECT DISTINCT prd.prd_id, prd.*
FROM prod1 prd,
prod1_parametry_kd prn,
prod1_param_k_dys pkd
WHERE prn.prn_prd_id = prd.prd_id
AND prn.prn_data_od <= SYSDATE
AND (prn.prn_data_do IS NULL OR prn.prn_data_do >= SYSDATE)
AND prn.prn_pkd_id = pkd.pkd_id
AND pkd.pkd_psl_lpr_id = :1
AND prd.prd_dostepnosc_od <= :2
AND (prd.prd_dostepnosc_do IS NULL OR prd.prd_dostepnosc_do >= TRUNC (:3)
I'm little confused because there is no connection between pkd and prd.
Is that query still rewritable as semi-join ?Regards.
Greg
Edited by: user10388717 on May 14, 2010 6:47 AM
Edited by: user10388717 on May 14, 2010 6:59 AMHi, Greg,
user10388717 wrote:
Hi,
I hate queries like this:
select distinct t1.col1 from t1 , t2
where
t1.pk = t2.fk
I'm always trying to rewrite that as semi-join like
select t1.col1 from t1
where
t1.pk in (select t2.fk from t2);
but now I've got something like this:
SELECT DISTINCT prd.prd_id, prd.*
FROM prod1 prd,
prod1_parametry_kd pkd,
prod1_param_k_dys pkd
WHERE prn.prn_prd_id = prd.prd_id
AND prn.prn_data_od <= SYSDATE
AND (prn.prn_data_do IS NULL OR prn.prn_data_do >= SYSDATE)
AND prn.prn_pkd_id = pkd.pkd_id
AND pkd.pkd_psl_lpr_id = :1
AND prd.prd_dostepnosc_od <= :2
AND (prd.prd_dostepnosc_do IS NULL OR prd.prd_dostepnosc_do >= TRUNC (:3)
I'm little confused because there is no connection between pkd and prd.
Is that query still rewritable as semi-join ?Regards.
Greg
Edited by: user10388717 on May 14, 2010 6:47 AMThere are two tables with the same alias, pkd. Should one of them be prn?
Anyway, sure, you can do what you want. The IN sub-query can be a join of two other tables, or perhaps there could be a nested IN sub-query.
Perhaps something like this:
SELECT DISTINCT prd.prd_id, prd.*
FROM prod1 prd,
WHERE prd_id IN ( SELECT prn.prn_prd_id
FROM prod1_parametry_kd prn,
prod1_param_k_dys pkd
WHERE prn.prn_data_od <= SYSDATE
AND ( prn.prn_data_do IS NULL
OR prn.prn_data_do >= SYSDATE
AND prn.prn_pkd_id = pkd.pkd_id
AND pkd.pkd_psl_lpr_id = :1
AND prd.prd_dostepnosc_od <= :2
AND (prd.prd_dostepnosc_do IS NULL OR prd.prd_dostepnosc_do >= TRUNC (:3)
;Of course, I can't test it.
Conditions that involve prd are in the main WHERE clause.
Conditions that involve the other tables, but not prd, are in the sub-query.
I suspect that doing a join would be at least as efficient. Why don't you want to do a join?
Edited by: Frank Kulash on May 14, 2010 10:08 AM
Maybe you are looking for
-
Invoice verifiction excise duty
hi all, During Invoice verification,system is not flowing Excise details as well as it is not showing any error and warning message. Its GRN has been made and Excise has been posted as wel part2 acconting document is also been geneated. so Plz help m
-
IOS7 Bugs? Can't export videos to youtube?
I've encountered a bunch of bugs so far. I thought iOS 7.0.2 would help it, but it's only made them worse! I have an iPhone 4S btw. Bugs: - Music controls don't always work when my phone is locked. This includes the music controls in the control cent
-
Just bought a gift card but doesn't work
Just bought a gift card for the app store but it says invalid code when i put it in my iPod touch
-
Finding directory from Forms 6i
I need to read a file from a specific directory in the C: drive of the users PC. The directory name is \temp. However this directory could be sitting in C:\temp on one PC and C:\test\temp on another PC. The location of directory is going to vary per
-
Hi, I need your help, i want to delete a request from a cube with the process "delete request in Infocube". But my problem is I want the deletion sections Is yesterday or today, only delete request from same DTP, New request will be loaded on (2 da