I want to design my database to get data with specified criteria. How do I do it without supplying common 'Where' condition?
I have more than 100 tables and each table have 2 fields CompanyID And LocationNo.
for example there is a table like Sales which is containing details about tax invoices. in this table invoice number can be duplicate with CompanyID and Location number.
CompID LocNo InvoiceNo
1 1 1
1 1 2
1 2 1
2 1 1
1 1 3
I want to get all invoice data where CompanyID is 1 and LocationNo also 1.
I know i can do this with simple where condition Where CompanyID=1 AND LocationNo=1. but there are more than 100 tables which are containing same fields and also i want to get only those data where CompanyID=1 AND LocationNo=1. so i cannot put where condition
everywhere in the whole project to get specified data only.
Is there any whay to create any datasource or ODBC connection that will help me to get data from only specified criteria.
More Information
I want to do something like Tally ODBC Server which is creates temporary ODCB server to retrive data from the tally database. This server retrieves only those data which transaction date is selected in Tally Software.
Thanks Satheesh for your reply.
Your idea is good.But, CompanyID and LocationNo can be different on differnt place. So, i cannot fix it with 1 or any other value.
if any way to pass both parameter into sql connection. So, when i execute only select query without where condition it will returns only specified data.
If you have used Tally then you know it creates ODBC server for its custom database. We can retrieve data into excel using TallyODBC_9000 connection.
This connection retrieves only those data which transaction date is selected in tally software.
I want to do something like this.
Similar Messages
-
SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
Thanks and Regards, Rangnath MaliHi Rangnath,
For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
Want to create RFC FM for Getting data in CRM from R/3
Hi,
I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
Thanks
BobbyDear Bobby,
You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
Select matnr werks LGORT LGPBE
from MARD
into ET_MARD
where matnr = i_matnr
and werks = i_werks.
Note:
matnr is material number
werks is plant
LGORT is storage location
LGPBE is storage bin
Hope this will help.
Regards,
Naveen. -
I am on vacation, downloaded audiobook , to my ipad, but want it on my iPod. Share itunes with husband . How can I get book from ipad to iPod?
If your iPod has a separate icloud account no you can't unless you sign out and sign in with the id you share and download it and sing in again with your id
-
How to get data with the raw pattern from resultset ?
would you tell me how to get data with the raw pattern from resultset ?
thank you in advance!
longgger2000I tried getBytes() and getObject()
, but I can not get the right result , for example the
data in oracle database is 01000000DFFF, when In used
the method of getBytes() and getObject(), I get the
result of [B@1c2e8a4, very different , please tell me
why !
thank you
longgger2000
[B is byte arrayseem that it return an bytes array for you. -
i want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??, i want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??
If you haven't found an answer yet. I know for a fact that this can be ordered directly from Apple at no extra cost
You can either ask for this when buying a new MBP at a "physical" Apple store, or as in my case in the UK the online Apple store allows such keyboard configuration in addition to 3 other languages like Spanish, German and French -
I want to reset my bootcamp Windows 7 to factory setting. How would I do this without damaging or effecting my Mac data?
If you want to erase the BootCamp Partition, you'd use the Bootcamp utility.
Then that part of the Mac's hard disk drive may be available for use in OS X.
{Or, if you want to install a clean Windows 7 in the same BootCamp partition
you'd use the BootCamp utility to erase/install Windows in the same location.
There is a BootCamp Support section in Apple Support online, and also there
is a fairly OK ASC discussions area specific to that purpose. }
But you may have to check to see if the partition map is correct for Mac OS X
after you've used Bootcamp utility to remove Windows and the partition map.
If you do not use the BootCamp utility to remove Windows, correctly or if a
different method to install Windows was used, you'd have to move your Mac
OS X system and applications off the computer to an external hard drive by
use of a clone utility (carbon copy cloner, or superduper, etc) then use the
OS X disk utility (from running clone, is easiest) to erase the computer's HD
and then correctly partition map and format the hard drive for Mac OS X.
At that point, the entire drive would be erased to reclaim any untouched
partitions from alternative Windows utilities that were used, or not used in
the time frame of proper opportunity.
I've had a few Macs that had been partitioned for Windows and found one
second hand MacBook to have more actual hard disk drive capacity than
the previous owner and the Mac HD info suggested on first glance. About
70% of the drive had been a Windows partition, but was invisible to OS X.
So that turned out to be a lucky find, it was like installing a larger HDD.
The wording of your question leaves a lot
of important information out of the picture.
Good luck!
edited -
On a west Texas highway I believe my old 3G iphone could get data with 3 bars. My new 4S could make phone calls but not get data. An att guy told me it's because there aren't enough 4G towers yet. Other explanations?
Simple solution. Get a real internet service and not a cell phone internet connection service it was never meant to be used as the primary internet service
And how do you lose a home and job and be sued as you claim. What over 10 Gb of data? Give me a break
In my city small claims is $5000.00
And over that amount you can go to a superior court to have your issue settled.
http://www.bbb.org
Good Luck, Elector -
Get data with correct array size
My VI is trying to rearrange the 2D array that I read from test.xls file, so that each function is get separated with there data in it.
Look over the test.xls file that I have attached. It has 2 columns. Both contains couple functions designated with ) and (. So, ACU_PGM is considered a function. I have rearranged the data so when ACU_PGM (or PGM is selected) the data following it is data for PGM before another function starts, which is KEY and 500 in this case. Same way for all other functions. Each column always ends by );
)ACU_PGM( )CAB_INP(
KEY WRITE
500 50
)ACU_DIA( 3
DM1 0
1010.1 )CAB_CLC(
0 WRITE
PROTECT 50
DM2 3
101.23 0
10 NA
NA )CAB_CRX(
); TEMP_1
3
0
The problem with my current design is I am initializing array with 0x0 size, once it gets the 1st function it gets initialized with that same size of that function array for that entire column's fnction, so it want take more elements if 2nd function in same column have more elements like in this case. ACU_DIA has 8 elements but it will only take 2 elements as ACU_PGM has 2 in it.
Please look over the Get_function.Vi only half portion. I have instructions in text in Vi also. I saw that columns are not lookin good after I submit the question so please open test.xlx file to see actual data Thank you.Message Edited by Amy222000 on 06-02-2005 03:44 PM
Attachments:
get_function.zip 795 KB
test.xls 14 KBDuplicate Post
E. Sulzer
Applications Engineer
National Instruments -
Hello Everyone,
I want to get data from table SFLIGHT with BSP Application.
I have used <htmlb:tableView and tableViewColumn tags
but i am only getting the structure displayed in the browser, not the data, pls suggest some code to achieve that.
Thank U
Ravi AswaniExample:
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<?xml version="1.0" encoding="UTF-8"?>
2 <m:report xmlns:m="http://www.bea.com/alsb/example">
3 <m:startTime>2013-06-04T14:02:08.168+04:00</m:startTime>
4 <m:endTime>2013-06-04T14:02:23.417+04:00</m:endTime>
5 <m:duration>PT15.249S</m:duration>
6 <m:queryId>dummy</m:queryId>
7 </m:report>') as xml from dual)
8 --
9 -- end of test data (in XMLTYPE datatype)
10 --
11 select x.*
12 from t
13 ,xmltable(xmlnamespaces('http://www.bea.com/alsb/example' as "m"),
14 '/m:report'
15 passing t.xml
16 columns startTime varchar2(30) path './m:startTime'
17 ,endTime varchar2(30) path './m:endTime'
18 ,duration varchar2(30) path './m:duration'
19 ,queryId varchar2(30) path './m:queryId'
20* ) x
SQL> /
STARTTIME ENDTIME DURATION QUERYID
2013-06-04T14:02:08.168+04:00 2013-06-04T14:02:23.417+04:00 PT15.249S dummyNote, this is based on XMLTYPE input (you'll have to convert your data to that type)
As for your timestamps etc. if you require those in TIMESTAMP or DATE datatypes you can convert those in the query -
I can't get on with v5. How can I download v4
I have used firefox for some years and I have been getting a message that firefox could not install updates and I should check that another version was not installed. I had only the one (v3) which I uninstalled but I was only offered v5 to download. Having tried to use v5 I cannot get on with it and would like to get v4 or even go back to v3. How do I acheive that?
downgrading is not supported by Apple and doing so has the potential to brick your device. so, you can't. if you have feed back for the new iOS you can provide that here: http://www.apple.com/feedback/
With that being said, try resetting your device by turning it off and back on again. -
How to get dates with respect to System Date?
Hello,
I am trying to get Date value after 30 days of my System current date. I am using
System.out.println(new java.util.Date(System.currentTimeMillis()+30*3600*24*1000));
but I am not getting correct date.
Suppose my system date is 15July then after executing this code I should get 14Aug, but it is giving a date of month June.
Please suggest solution for this.
Thanks,
NiketThis doesn't have anything to do with the Collections Frameworks. You should direct this type of question to "Java Programming".
Here is the code you're looking for anyway...
import java.util.*;
import java.text.*;
public class thirty
public static void main(String[] args) throws ParseException
Calendar todaysdate = new GregorianCalendar();
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
System.out.println("today's date: " + sdf.format(todaysdate.getTime()));
todaysdate.add(Calendar.DATE, 30);
System.out.println("thirty days later: " + sdf.format(todaysdate.getTime()));
} -
CachedRowset Error Getting Date with Time
We are using CachedRowSet and while getting Date from Oracle, it is missing the Time. i.e. It is just returning the Date and not the time.
e.g. If the DB has 26-01-2005 10:00:00 it is returning just 26-01-2005 and not the time. It is all 0:0:0.
What should be done in this case? Is this a bug or what?That's getTimestamp.Even tried that, but still getting time as 2005-02-09
00:00:00.0, and where as in the DB it is 2/9/2005
7:30:00 PMI simply cannot believe this to be true. But if indeed it is, then you have found a bug in Oracle's driver and would suggest you open a case with them to work out. One more thing to try though - what happens if you call getString instead? I don't know for sure if timestamp columns can be retrieved via getString, but if they can, what does it display? Also, are you sure you're getting the right row (correct query) and column versus what you're showing elsewhere (where you claim the DB shows 7:30:00 PM)? Are you getting the column via passing an integer, or a String column name, to the getTimestamp method? If an integer, maybe you're passing the wrong value (and therefor getting the wrong column value). -
My mac keeps on loading when turning on. I cant get in with my mac. Any idea how to settle it? Or should I reset my mac?
Hi..
Try Resetting the System Management Controller (SMC) -
Logical Standby Database Not Getting Sync With Primary Database
Hi All,
I am using a Primary DB and Logical Standby DB configuration in Oracle 10g:-
Version Name:-
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Solaris: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
We have build the logical standby last week and till date the Logical DB is not sync. I have checked the init parameters and I wont see any problems with it. Also archive log destinations are also fine enough.
We have a important table named "HPD_HELPDESK" where record count is growing gradually whereas in logical standby it's not growing. There are some 19K record difference in the both the tables.
I have checked the alert log but it is also not giving any error message. Please find the last few lines of the alert log in logical Database:-
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1703_790996778.arc] to LogMiner session id [1]
Tue Aug 28 14:56:52 GMT 2012
RFS[2853]: Successfully opened standby log 5: '/oracle_data/oradata/remedy/stbyredo01.log'
Tue Aug 28 14:56:58 GMT 2012
RFS LogMiner: Client enabled and ready for notification
Tue Aug 28 14:57:00 GMT 2012
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1704_790996778.arc] to LogMiner session id [1]
Tue Aug 28 15:06:40 GMT 2012
RFS[2854]: Successfully opened standby log 5: '/oracle_data/oradata/remedy/stbyredo01.log'
Tue Aug 28 15:06:47 GMT 2012
RFS LogMiner: Client enabled and ready for notification
Tue Aug 28 15:06:49 GMT 2012
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1705_790996778.arc] to LogMiner session id [1]
I am not able to trace the issue that why the records are not growing in logical DB. Please provide your inputs.
Regards,
ArijitHow do you know that there's such a gap between the tables?
If your standby db is a physical standby, then it is not open and you can't query your table without cancelling the recovery of the managed standby database.
What does it say if you execute this sql?
SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;The ARCH processes should be connected and MRP waiting for a file.
If you query for the archive_gaps, do you get any hits?
select * from gv$archive_gapIf you're not working in a RAC environment you need to query v$archive_gap, instead!
Did you check whether the archives generated from the primary instance are transferred and present in the file system of your standby database?
I believe your standby is not in recovery_mode anymore or has an archive_gap, which is the reason why it doesn't catch up anymore.
Hope it helps a little,
Regards,
Sebastian
PS: I'm working on 11g, so unfortunately I'm not quite sure if the views are exist in 10gR2. It's worth a try though!
Edited by: skahlert on 31.08.2012 13:46
Maybe you are looking for
-
Error while trying to access to Displays prefrences
Hi all, I'm reporting a strange behavior. I don't really know how to deal with it. A few days ago i wanted to adjust the resolution of the external screen i'm using with my 2011 MBP and the Displays preference pane had disappear from the System Prefe
-
I have gigabytes of Adobe CC files arranged in appropriate client folders in Dropbox (and mirrored on my local hard drive). It looks like if I turn File Sync on (needed to access Assets) some or all of this will be duplicated and separated from non-A
-
Adrelink is exiting with status 1
Relink of module "FNDDWPUR" failed. See error messages above (also recorded in log file) for possible reasons for the failure. Also, please check that the Unix userid running adrelink has read, write, and execute permissions on the directory /home/ap
-
Photoshop software on disk and no disk drive
I've just received my adobe photoshop CS6 on disk and I'm waiting for my new MacBook Pro with retina display to arrive... Just realised it doesn't have a disk drive. Can I just transfer p'shop files to external hardrive and install it from there?
-
Hi there! Do you guys know how can I fix my disabled Apple ID?
Hi there! Can you guys help me how to fix my disabled Apple ID?