Can I create a Depart Date for a record, from the Arrive Date in the next record?
I have a Customer database with the tables tblCustomers and tblAddress. The tblCustomers has the following fields; CustomerID, CustomerName. The tblAddress has the following fields; CustomerID, Address, Town, County, ArriveDate. When a customer calls us
we start a new record with the CustomerID, CustomerName, Address, Town, County. The ArriveDate is left blank. When my service guy calls to the customer he fills in the ArriveDate field. We do not have a LeaveDate field. He could be there from 1 day up
to 5 days. Each day he is is there he adds another record with all the above data, including the date in the ArriveDate field. If he finishes on a Friday he will take Saturday and Sunday off. On Monday he moves to the next customer, he has a new
customer/location record waiting for him, as before he fills in the ArriveDate and starts working. If he finishes with a customer midweek he will go straight to the next customer where there is a new customer/location record waiting for him to fill in
the ArriveDate. It looks something along these lines;
CustomerID CustomerName Address Town County
ArriveDate
5437 Mr.A 123 Main St
Nenagh Tipperary 01/01/2015
5437 Mr. A 123 Main St. Nenagh
Tipperary 02/01/2015
5437 Mr. A 123 Main St. Nenagh Tipperary 03/01/2015
off Saturday and Sunday
7890 Mr. B 77 The Avenue Tralee Kerry
06/01/2015
7890 Mr. B 77 The Avenue Tralee Kerry
07/01/2015
I want to generate a DepartDate which will be generated when the Address, County and/or Town fields change from the previous record. The Depart Date should be equal to the last of the Arrive Dates before the Address, Town and County fields change to
the new customer/address.
Is this possible to do, i would appreciate any help with this.
Hi NewAccessLearner,
For the results of the query, I think you accord the logic below to find the DepartDate, but the sql query would be much complex.
Take the 123A to make a simple demo:
#1 check the ArriveDate of the next date whether it exist in the ArriveDate
DepartDate
Expr1000
t1.CustomerID
t2.CustomerID
Address
Town
County
ArriveDate
1/2/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/1/2015
1/3/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/2/2015
1/4/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/3/2015
1/8/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/7/2015
6/2/2015
7890
7890
77 The Avenue
Tralee
Kerry
6/1/2015
In the first column the “1/4/2015” is not in the ArriveDate, and then the “1/3/2015” would be the date for DepartDate.
I am not familiar with sql query, I think you need to ask the sql experts for help.
Best Regards,
Leo
Similar Messages
-
How can I create a fIlter to delete only "junk" from the server?
One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
- after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
- not delete any other messages from the server for that accountI believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.
-
I have a vendor database that I want to use to populate a pre-created PDF form in Adobe Pro XI. I figured out how to rename the form data fields and how import the data from my data set but can't figure out how to have it create another copy of the form for the next record in the data set.... if its even possible. Any help is appreciated!
This can be achieved with a mail-merge type script.
-
Why can i only select one LUN for repository creation from the list of LUNs
1) have successfully created a server pool with heartbeat/cluster lun of 15GB storage
2) Now trying to create repositories for VMs - Unable to select more then 1LUN per repository - we have a requirement of over 14TB and have 1TB per LUN does this mean we will require 14 repositories??? Please help
Thanks in advanceright....It seems as though we will have to have 1TB LUNs per Repository, one question that comes to mind is that is it possible for a single VM to use more then one repository any ideas... ??
so for example if a VM needs to utilise remaining free space from a LUN is this possible or if a VM needs a bigger partition then 1TB can we use 2 x repositories to build this partition?? as we have max 1TB LUNs from storage.
Or will we have to request a amendment to the size of LUNs to increase to 2TB from storage? 2TB being max supported to a repository -
How can I install Oracle Database 10g for Solaries (SPARC) from the console
Dear Forum Members,
In my office, I have to installed Oracle Database 10g for Solaries (SPARC). But I have to do it without DISPLAY Monitor.Is it possible install it by remote login to this server using response file (silent mode) or something like that?
If yes. Then How?
If anyone have the exact solution, then I need your feedback. I shall wait for your reply.
Thanks
Aungshuman PaulThere are 2 possible ways to accomplish this.
First,
Silent installation
http://www.informit.com/articles/article.asp?p=174771&rl=1
Second, (cut/paste from other site)
How to install Oracle software remotely?
Remote Software Installation Steps: (For Solaris only)
If you want to install Oracle Software remotely, you should perform the following steps. These steps are applicable only if your source and target machine are running Unix.
For example, you can install Oracle Software from your home from Washington, DC to a target source in California.
1. Pick your source server or machine for remote installation.
2. Check that your CD is in your source CD-ROM drive.
3. On the target machine, find your target machine name with the output of the /usr/bin/hostname
4. On the source machine, login as a user.
5. On the source machine, enable client access: % /usr/openwin/bin/xhost + target-machine-name
6. Become root user by typing: su (dont use -)
7. Check that Volume Manger is running. # ps ef |grep vold (if you see an entry that contains /usr/sbin/vold, Volume Manager is running. Then skip to Step 10.
8. If not then do the following: # mkdir p /cdrom/your-cd-file-name
9. # mount F hsfs r cdrom-device /cdrom/your-cd-file-name
10. Add the following line to your /etc/dfs/dfstab file: # share F nfs o ro /cdrom/your-cd-file-name
11. Verify whether your source machine is an NFS server: # ps ef | grep nfsd
12. If you see an entry that contains /use/lib/nfs/nfsd a 16, then nfsd is running and skip to Step 16.
13. If nfsd is running, then type: # /usr/sbin/shareall
14. If nfsd is not running, then start nfsd by typing: # /etc/init.d/nfs.server start
15. Verify whether your source machine is an NFS server again by typing: # ps ef | grep nfsd
16. Make sure your source machine is exporting your product directory by typing: # /usr/sbin/dfshares
17. Now, log in to the target machine by type: # rlogin target-machine-name l user (not root)
18. Then log in as the root user by typing: # su
19. Go to the source machine by typing: # cd /net/source-machine/cdrom/your-cd-file-name ,then Skip to 24.
20. If you cannot change to that directory in Step 19 and you do not have an auto-mounter on your network, then create amount point by typing the following commands.
21. # mkdir /remote_products
22. # /usr/sbin/mount F nfs r source-machine:/cdrom/your-cd-file-name /remote_products
23. # cd /remote_products
24. Redirect the target machine display to source machine by typing: # DISPLAY=source-machine:0; export DISPLAY (if you use a Bourne or Korn shell).
25. Start the Web Start Installer by typing: # ./installer (or whatever the installer name program is). -
Create navigation iviews to show differents documents from the same folder
Does any body knows how can i create navigations iviews that show differents documents from the same folder? This is my situation i have a folder that include documents for diferents countries, i want create a navigation iview that show only the documents for Canada from this folder.
The only other option is to give user access using taxonomy. But it seems like a lot of extra work to keep documents in the same directory. anyway, here is the overview of steps:
1. create index (SA > System Configuration > Knowledge Mgmnt > Index Administration)
2. create categories within the taxonomy.
3. define Query on each category. (Content Management > Classification > Taxonomy Query Builder)
4. create property: property namespace, property group. (SA > System Configuration > Knowledge Mgmnt > Content Mgmnt > Global Services > Property Metadata)
5. <b>assign props to the docs.</b>
6. Schedule the crawler to create classification index.
7. classify docs so that docs actually go recide in the categories
<b>8. Create role, page and KM Navigation iViews for end user to browse the taxonomy instead of going directly to the repository.</b>
9. restrict permissions on the taxonomy for different user groups.
Kumar -
Can we create two dashboard prompts for the same column in the samepage
hi ,
can we create two dashboard prompts for the same column on the same page,
I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
Any suggestions or ideas863997 wrote:
hi ,
can we create two dashboard prompts for the same column on the same page,
I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/ -
I have four iphones on my icloud account, can i create an icloud account for each phone?
I have four iphones on my icloud account, can i create an icloud account for each phone?
Welcome to the Apple Community Joe.
There is nothing stopping you doing so, but you won't be able to sync anything between them. -
HT204053 how can i create multiple icloud accounts for my family members
how can i create multiple icloud accounts for my family members
Thanks... I appreciate the reply. Since I wrote the previous email, I actually went and changed my apple id (the main id) and the documentation I looked at said iCloud will set mail up automatically(?)... I had it working before.
Also, I tried to manually set up the ID via the Mail Accounts screen(s) and I can't figure out what my server information is... Pop or Imap? What's the outgoing server and the incoming server?
I typically have never had problems setting up mail accounts (in apple mail) with no problem.
Can anyone point me in the right direction?
Thanks in advance! -
How can I create an apple ID for my daughter, without adding a credit card to the account? I have tried to purchase a gift card online, but it just credits it to my account; I cannot use it to credit her new account therefore I cannot create that account.
There are intructions on this page for how to create a new account without giving credit card details : http://support.apple.com/kb/HT2534
e.g. log out of your account, find a free a free app in the store, click on its free 'price' :
click on 'create Apple id' on the popup :
Agree to the terms and fill in the details, and you should get 'none' on the payments screen. -
HT5622 How can I create an Apple ID for my child without linking it to a credit card?
How can I create an Apple ID for my child without linking it to a credit card?
Hi Kappy..
that did use to be the case but ios 8 you can create a child's Apple ID which will stay linked to the main Apple ID until they are 13 when they can if you wish take over the Apple ID themselves.
I Have the same question regarding creating an Apple ID for my son but it insists I have to add a credit card to prove I'm an adult.
thing is I don't have another card to add to my Apple ID I have been using the same card for all my family's Apple purchases i just update my details when I get issued a new one.
Any ideas or suggestions greatly accepted.
cheers -
How can I create an apple ID for Free?
How can I create an apple ID for Free?
You can create an iTune and App Store account without credit card details
1. Sign out of current Apple ID if you are sign-in to one (important)
2. Go to App Store and select a free app
3. Tap INSTALL APP
4. Create New Apple ID
5. Confirm Your Country
6. Agree with Terms and Conditions
7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
8. Create and answer your secret question
9. Select NONE for Payment Method
10. Fill in Billing Address
11. Submit application for new Apple ID
12. Wait for verification email
13. When email arrive, verify your account
14. Start downloading your free apps -
Can I create an Apple ID for my minor daughter so she can use the Find My iPod ap on her iPod Touch? I can't use my own Apple ID, because I have my own iPod Touch.
yes you can, you can have as many itouch on your account and still be able to loacte them throu MobileMe or iCloud if there on and connected to wifi
-
Can I create a single PO for two company codes
Hi
Can I create a single PO for two company codes. Though I know that Company code is assigned at header level but still I know there is a setting in controlling which when activated two company codes under same controlling area can procure the goods under the same PO.But i forget from where to activate that message or control in config.
ThanksHi Lekhram,
I'm just beginner so maybe I got the wrong end of the stick.
If you order something that something must belong to a definite company > plant. How could possess two company the same thing at the same time (totally)?
(companies are at the same organisational level - none of them is subject to the other).
Maybe I'm mistaken.
So I <b>guess</b> you can use only one company code for one PO.
Controlling area & company code
http://help.sap.com/saphelp_46c/helpdata/en/e5/077a704acd11d182b90000e829fbfe/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/513f4b43b511d182b30000e829fbfe/frameset.htm
Purchasing & organisation
http://help.sap.com/saphelp_46c/helpdata/en/75/ee0a9555c811d189900000e8322d00/frameset.htm
All the best
Csaba -
How can i create another apple id for my other iphone?
how can i create another apple id for my other iphone? my wife is using the other iphone and we dont want to share contacts and downloads.
Go to this page to create another Apple ID. You'll need to have another email address to do it.
Best of luck.
Maybe you are looking for
-
My hard drive crashed on my power pc mac mini. I replace it with a used (recycled) drive and the Apple Store installed Tiger 10.4. I tried to re-install Adobe Creative suite 2 but the install icon is not showing up when I try to install from CD's. Is
-
Interactive script editor in webclient
HI, In webclient I can't found interactive script editor under business role IC_MANAGER, which work center should be assigned? BR, ROBERT
-
Update vs2013 update 4 and TFS can't work!
like this: and the ActivityLog.xml show : <entry><record>1581</record> <time>2015/02/16 08:36:44.371</time> <type>Information</type> <source></source>VisualStudio <description>Entering function CVsPackageInfo::HrInstantiatePackage</description> <guid
-
Hi All, I have done a small development.In my component there is a inputfield.In that when i enter a tablename,table fields with there values will get displayed. My requirement is when i double click the fields the data type of the fields should get
-
hi, when I am creatating type as under: create or replace type sop_record_journal_file as object service_request_id sop_service_request.service_request_id%TYPE It gives me: SQL> show err Errors for TYPE SOP_RECORD_JOURNAL_FILE: LINE/COL ERROR 0/0 PL/