Tables, Divs or both
I think i asked this question a long time ago but I am now getting around to finalizing my web site and I am not sure if a table in a div is a good idea.
I have a div for wrapper, header, navigation,mainbody and footer. All are in my template and the only editable region is the mainbody.
I could place a right div, left div and possibly a center div and have several divs in those 3 larger divs.
Or I could use tables as for some of my pages, I will be using photographs (of fitted kitchens).
I am thinking about having about 9 small thumbnail pictures on left side of page and each would change bigger picture on right of page.
I am thinking that when I do the maths, a table may be better even although it is in amongst divs.
Am I causing myself future grief or is this the correct way round it.
Thank you for taking the time to read my short story and I hope you can help me.
regards
Michael
MichaelCo wrote:
Murray *ACP* wrote:
I know it can be done in tables but not sure if it can be done with thumbnails within a div.
The container of an element has no bearing on what events can be applied to that element. So, you can definitely do this whether the thumbs are within a span, a paragraph, a table, or a div.
Hi Murray, me again.
Do I have to use Fireworks or similar programme in order to create a layout for this. Or is there a better way using dreamweaver.
Michael
Don't use Fireworks use something like jquery or php
I don't know how experienced you are with coding and css but search google for 'jquery image gallery' or 'jquery image gallery tutorial'
Heres one I pulled up as an example:
http://www.twospy.com/galleriffic/#1
See list of examples, like:
http://www.twospy.com/galleriffic/example-2.html
Similar Messages
-
I need to implement Drag N Drop between two tables which saves both records
I need to implement Drag N Drop between two tables which saves both records in a third page, by using drag n drop.
check this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html
-
I am building a 'planner' in a table and it looks okay in
Firefox but not in IE. It's a work in progress but IE doesn't allow
the table to align properly and help would be appreciated.
Also, the table and left menu reside in a div (container2)
which I set at 1900px width. Is there another way to determine its
size or do I just add the components (menu plus centrebody).
The page is located at
http://members.optuszoo.com.au/csteed/4R%20Conference/3day-program.html
Thanks, Chris
Disregard - fixed the problem.csteed posted in macromedia.dreamweaver:
> I am building a 'planner' in a table and it looks okay
in Firefox but
> not in IE. It's a work in progress but IE doesn't allow
the table to
> align properly and help would be appreciated.
I'm not seeing the problem in IE7. Perhaps if you add the
missing closing
</div> tags and fix the other errors, it will help.
Enter your URL into this page to see the errors:
http://validator.w3.org/
> Also, the table and left menu reside in a div
(container2) which I set
> at 1900px width. Is there another way to determine its
size or do I
> just add the components (menu plus centrebody).
With the page as it is now, I don't think you need to specify
the width at
all. I didn't see any difference in FF when I deleted that
line in your CSS,
anyway.
> The page is located at
>
http://members.optuszoo.com.au/csteed/4R%20Conference/3day-program.html
Mark A. Boyd
Keep-On-Learnin' :) -
Getting ORA-00903:invalid table name with both system and table owner
Hi All,
Oracle version 9.2
I'm trying to retrieve some information from a few tables and import them to Excel. I haven't got much idea about ORACLE, but I'm not able to do anything.
I open SQL PLus, and use CONNECT SYSTEM/[email protected] AS SYSDBA
The console shows connected.
I use select table_name,owner from dba_tables where owner='USER1';
I can see the tables I want to access in the output.
I do select * from USER1.TABLE1 and also tried with select * from TABLE1, both return ORA-00903:invalid table
I also tried to connect with "CONNECT USER1/[email protected]" also shows connected, but then same error ORA-00903:invalid table
Could anyone guide me so I can find out whats going on wrong??
Thanks.. Best regards!Great! this worked! At least now I know I can read the data.
Now I would like to get the data from this table into Excel 2007, but I can't install Office in the ORACLE server, so I have setup my client computer (Windows 2003 server with Excel 2007).
I installed the ORACLE ODBC driver, and put the TNSName.ora file into the network admin folder.
I successfully create the ODBC connector, and try connection is successfull. However, when I try to get the data, Excel send an error saying that it cannot list the tables!
Anyway, any simple solution will do. If there is an easy way of making ORACLE create for example a CSV file with all the data from the table it will be good as well. What would be the easiest way? -
Table which stores both creator and requestor names
Hi Experts,
We are using SRM 7.0 with extended classic scenario.We got a requirement that when Shopping cart rejected then rejection email should go to both creator and requestor in case of Shop on behalf.
But as per standard SRM rejection email going only to requestor.As we are trying to figure out how to trigger the mail to creator aswell,
Can some one help with the table name if any which stores both creator and requestor names so that we try to build some logic.
Thanks in advance.
Regards,
KalyaniHi Sankara,
Thanks for your response.
Yes i checked the FM bbp_pd_sc_getdetails it didn't solved the purpose.
Thanks.
Regards,
Kalyani -
Problem with DIV "clearing both"
I am in the process of building a template for my website. I
have built my Spry menu bar and have designated a div for to become
my "editable area." This area to become the editable area is a DIV
called "main content." It placed directly following the Spry menu
bar. I have set a CSS rule for the "main content" div as: BOX =
Float: left and Clear: both.
Why is the content (text) for the "main content" div still
jumping up along side my spry menu bar?
See the page...
http://www.birchwoodstudios.net/luke/bsweb/Birchwoodstudios.html
Thanks so much in advance!
LukeLuke, a few problems in your code, don't use spaces in CSS
div names. Also
you don't need to place float and clear inside the same
division.
Try this instead.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>Birchwood Studios</title>
<style type="text/css">
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;}
body,td,th {
font: 100% Arial, Helvetica, sans-serif; color:#FFFFFF}
#container {
margin-right: auto;
margin-left: auto;
width: 780px;
background-color: #2A5FAA;}
#banner {
padding: 10px;
background-color: #2A5FAA;}
#menubar {font-size:16px}
.clearing {
clear:both;
visibility:hidden}
#maincontent {padding: 10px; font-size:1em;
line-height:1.5em}
#footer {text-align:center; font-size:.75em;}
</style>
<script src="SpryAssets/SpryMenuBar.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css"
rel="stylesheet"
type="text/css" />
</head>
<body>
<div id="container"><!--Begin container -->
<div id="banner"> <!--Begin banner --><img
src="images/2ndbanner.gif"
width="760" height="156" alt="Birchwood studios banner" />
</div><!--end banner -->
<div id="menubar"><!--Begin menubar -->
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#">Main </a> </li>
<li><a href="#"
class="MenuBarItemSubmenu">Services</a>
<ul>
<li><a href="#">Photo
Scanning</a></li>
<li><a href="#">DVD
Slideshows</a></li>
<li><a href="#">Photo
Restoration</a></li>
<li><a href="#">Website
Development</a></li>
<li><a href="#">Web Hosting</a></li>
<li><a href="#">Search Engine
Optimization</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu"
href="#">Pricing</a><ul>
<li><a href="#">Photo Scanning</a>
</li>
<li><a href="#">DVD
Slideshows</a></li>
<li><a href="#">Photo
Restoration</a></li>
<li><a href="#">Website
Development</a></li>
<li><a href="#">Web Hosting</a></li>
<li><a href="#">Search Engine
Optimization</a></li>
</ul>
</li>
<li><a href="#">About Us</a> </li>
<li><a href="#">Contact Us</a></li>
</ul>
</div><!--end menubar -->
<div class="clearing"><!--this is to clear menu from
maincontent --></div>
<div id="maincontent"><!--Begin Content -->
<p>Content for id maincontent Goes Here</p>
</div> <!--end maincontent -->
<div id="footer"><!--Begin footer -->
<p>Content for id footer Goes Here</p>
</div> <!--end footer -->
</div> <!--end container -->
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
"ape54321" <[email protected]> wrote in
message
news:[email protected]...
> I am in the process of building a template for my
website. I have built
my
> Spry menu bar and have designated a div for to become my
"editable area."
This
> area to become the editable area is a DIV called "main
content." It
placed
> directly following the Spry menu bar. I have set a CSS
rule for the "main
> content" div as: BOX = Float: left and Clear: both.
>
> Why is the content (text) for the "main content" div
still jumping up
along
> side my spry menu bar?
>
> See the page...
>
http://www.birchwoodstudios.net/luke/bsweb/Birchwoodstudios.html
>
> Thanks so much in advance!
> Luke
> -
DW Beginner - Tables, Div Tags and CSS Confusion
Hi,
I am a beginner to DW. The layout I am designing is as follows:
First I have an overall "container" on the outside of my layout which I called "wrapper" and I made it using a div tag.
Next I made a table within or right after this "wrapper" div tag, which I called my "navbar".
After this table I made another table named left and right column (r:1 cz:2).
And lastly, another table, called "footer".
Now, I made a CSS for the div tag, no problem. But, when I go to make CSS for the tables, that's where it gets confusing.
For example, I went into my "navbar" table, selected on the "trail" <td>, and then tried to create a CSS for this particular table.
Problem: Why when setting my font or background or any other setting, are the other 2 tables changing also if I only assigned this specific area for the CSS navbar table? Am I selecting the wrong "trail" or is it because it is still entrapped somehow in the "wrapper" div tag, so it won't allow my new CSS settings? I would appreciate any help. This can really get confusing fast, especially for us beginners trying to learn.
Thanks,
SSince you're new to DW, I'm assuming you're new to HTML and CSS, too. So start by learning code basics first and you'll have a much easier time understanding DW.
Begin here:
HTML & CSS Tutorials - http://w3schools.com/
CSS layouts are much more flexible than tables. Below are some example of CSS layouts (no tables needed)
http://alt-web.com/TEMPLATES/I-page-with-floats.html
http://alt-web.com/TEMPLATES/2-col-fixed-layout.shtml
http://www.tjkdesign.com/articles/one_html_markup_many_css_layouts.asp
From Tables to CSS Web Design Part 1 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html
From Tables to CSS Web Design Part 2 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html
Good luck,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com
How To get Help Quickly in DW Forums
http://forums.adobe.com/thread/470404 -
Hi Everyone,
Hopefully someone might have an explanation for the difference in counts.
Problem:
Excel 2013 on Windows 7
A Single excel spreadsheet with 2 data sources:
One created using "From Other Sources on the DATA tab which connects to SQL Server"
Second data source the same data as item 1, but in a differnet worksheet tab inside the workbook
[Sheet1] - Other SQL data Source
[Sheet2] - Exact Same data as Sheet1 but in a table
[PowerView] - 2 tables
Table one uses Sheet1 as its table data source
Table two uses Sheet2 as its table data source
When you Count(Not Blank) using the same criteria and fields for each table, the numbers dont match.
The one that has the incorrect count is when I use the Table data from [Sheet1] - which is the Other SQL Data Source
Testing:
I also created a standard pivot table using Excel and the counts then are both correct for both datasources. So it must be something in PowerView????
Any ideas anyone...Hi,
This is the forum to discuss questions and feedback for Microsoft Office client. Since your question is Power View related, I'm moving it to the forum of
power BI>Power View, where you can get more experienced responses:
http://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Table (div tags, extra tr td attributes) and Kadov styles
I have an old old project to cleanup--the Kadov styles and an archaic (maybe from word import?) table formatting (hardcoded margins, nobreak) do not get replaced when I apply the paragraph styles from the .css or use the Table cell formatting to fix spacing...the HTML result contains both old format tags and new format tags, and the output looks like the old tags.
Any quick fix ideas? Oddly my multi-level numbering works darn good! But the nested <span> tags everywhere are daunting!.Hi,
You can clean up your project considerably by clicking Tools > Update DHTML effects in topics. This nifty function does more than it's name suggests. Make a backup of your project before you fun this.
You can easily clean tables. Select the table and right click. Select 'Table style'. Check 'Clean Table Inline Formatting' and press OK.
As for the multilevel lists, are you talking about RH's own Multilevel lists? These lists work quite well, although they aren't outputted as lists. The output is a little sloppy, but it works quite well. If you want 'real' multilevel lists, you need to use 'normal' lists and nest them. (Use the Increase Indent button for that.)
If there is more formatting amiss, you can try a search and replace operation or a script. Beware that something like that can cripple your project in seconds. Always make a backup!
Greet,
Willam -
Two tables that have both "many-to-many" and "one-to-many" relationship
i have the following two tables one represents the users and the other represents articles where each article can have one author(user) and of course the users can author many articles, so the relationship is one-to-many:-
1. Users:-
User_id (primary_key)
User_name
User_sex
user_address
2.Articiles:-
Article_id
Text
Author_id (foreign key to the users.user_id)
but the problem that i have faced is that on another requirement each articles can have multiple approval (users) before being published, so in this way the relation have became many-to-many, so i have created a third table named "approvals":-
3.Approval:-
approval_id (foreign key to the users.user_id)
article_id (foreign key to the articles.article_id)
level.
so is this a good approach to flow , or there are another way that i can better build these tables.sb92075 wrote:
approval_id (foreign key to the users.user_id) I am not clear on data element above.
I thought USERS were really AUTHORS. yes the authors are users , and the author id is exactly the same as user id.
and any user can be author if a flag in the users table is set to yes and he is involved in a workflow.
so do authors approve their own articles? no
do non-authors approve articles?
What is "level" in APPROVAL table?
What is PK for APPROVAL table? level indicates the workflow steps if there are multiple steps in the workflow ,for example the first approval is on level one, and the second approval is on level two,etc
the primary key for the approval will be article_id and the user_id -
I have a table that contains data parsed for a weather station page. It also has a webcam picture on the page. Up until now, the webcam pic has loaded via an applet but I want to change that to a jquery slideshow so it's accessible to more mobile devices. My problem is that no matter what I do (aside from putting a 5x240 spacer) I can't get the table data to display below the webcam div (id="featured"). I've put the webcam and data table in their own div, the webcam's div in the table, used clear:both on the divs, tried setting block size, but it's like nothing is working. So I'm back to go and thought I'd post it here since there are so many folks here who know more about this than me. This is the html, right now with no CSS classes or anything added. So whatever you would suggest as far as div and/or table layout and any CSS would be appreciated.
<table width="100%" cellpadding="3">
<tr align="center"><td >
<div id="featured"> <a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img0" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-9.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img10" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-8.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img9" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-7.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img8" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-6.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img7" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-5.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img6" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-4.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img5" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-3.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img4" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-2.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img3" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-1.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img2" /></a>
<a href="http://www.spyglasshill.com/Webcam/" target="_new"><img src="http://spyglasshill.com/Webcam/netcam-0.jpg" alt="Webcam of Holland Channel from Spyglass Condos" width="320" height="253" border="0" id="Img1" /></a> <!--end div featured--></div>
</td></tr>
<tr>
<td><img src="images/spacer5x260.gif" width="5" height="260"></td></tr>
<tr>
<td colspan="4"><p align="center"><a href="images/06/Waterspout/Waterspouts.htm"><br />
</a></p>
<div align="center">
<p><a href="images/Waterspout/Waterspouts.php">Waterspout on Lake Mich </a>||| <a href="images/ANIFreighter.gif">Freighter Leaving Harbor</a><br />
</p>
</div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#EAEFF9"><div align="center">
<h2>Weather Conditions Last Updated wvcurudwv at wvcurutwv </h2>
</div></td>
</tr>
<tr>
<td><div align="right"> Temperature </div></td>
<td><div align="left"> wvcur01wv </div></td>
<td><div align="right"> Wind Speed </div></td>
<td><div align="left"> wvcur18wv </div></td>
</tr>
<tr>
<td><div align="right"> Average High </div></td>
<td><div align="left"> wvahtempwv </div></td>
<td><div align="right"> Wind Direction </div></td>
<td><div align="left"> wvcur17wv </div></td>
</tr>
<tr>
<td><div align="right"> Record High </div></td>
<td><div align="left"> wvrhtempwv in
wvrhtyrwv </div></td>
<td><div align="right"> Peak Wind Gust </div></td>
<td><div align="left"> wvhigh18wv at
wvhight18wv </div></td>
</tr>
<tr>
<td><div align="right"> High
Since Midnight </div></td>
<td><div align="left"> wvhigh01wv
at wvhight01wv </div></td>
<td><div align="right"> Wind Chill Factor </div></td>
<td><div align="left"> wvcur02wv </div></td>
</tr>
<tr>
<td><div align="right"> Low </div></td>
<td><div align="left"> wvlow01wv
at wvlowt01wv </div></td>
<td><div align="right"> Yesterday Max Wind </div></td>
<td><div align="left"> wvyhigh18wv at wvyhight18wv </div></td>
</tr>
<tr>
<td><div align="right"> Rainfall Since
Midnight </div></td>
<td><div align="left"> wvcur16wv </div></td>
<td><div align="right"> Relative Humidity </div></td>
<td><div align="left"> wvcur13wv </div></td>
</tr>
<tr>
<td><div align="right"> Rainfall Yesterday </div></td>
<td><div align="left"> wvyhigh16wv </div></td>
<td><div align="right"> Barometric Pressure </div></td>
<td><div align="left"> wvcur15wv </div></td>
</tr>
<tr>
<td><div align="right"> Sunrise </div></td>
<td><div align="left"> wvsrisewv </div></td>
<td><div align="right"> Heat Index </div></td>
<td><div align="left"> wvcur04wv </div></td>
</tr>
<tr>
<td><div align="right"> Sunset </div></td>
<td><div align="left"> wvssetwv </div></td>
<td><div align="right"> Dew Point </div></td>
<td><div align="left"> wvcur03wv </div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>Moon
distance from earth</td>
<td><span>wvmdistwv</span></td>
<td> </td>
</tr>
<tr>
<td><h2> </h2></td>
<td><h2> </h2></td>
<td><h2> </h2></td>
<td><h2> </h2></td>
</tr>
<tr>
<td><h2><a href="http://www.coastwatch.msu.edu/twomichigans.html" target="_blank">Lake
Michigan<br />
Water Temp</a></h2></td>
<td><h2><a href="http://www.woodtv.com/Global/category.asp?C=2906&nav=0Rcf">TV
8</a> & <a href="http://www.wzzm13.com/weather/forecast/weather.asp">TV13</a> Weather </h2></td>
<td><h2><a href="http://www.deq.state.mi.us/beach/Default.aspx?County=70" target="_blank">Ottawa County Beach Conditions</a></h2></td>
<td><h2><a href="http://www.crh.noaa.gov/product.php?site=grr&product=nsh&issuedby=grr" target="_blank">Nearshore
Marine Forcast</a></h2></td>
</tr>
</table>Of course as soon as I posted that, I found the error of my ways. I had forgotten to set containerheight: on my .js script for 'div#featured'
Arrrghh, why couldn't I have realized that a hour ago!!! -
Can you check for data in one table or another but not both in one query?
I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
ACCOUNT
AccountID Name
123 John Doe
124 Jane Donaldson
125 Harold Douglas
MARKETER_ACCOUNT
Key AccountID Marketer StartDate EndDate
1001 123 10526 8/3/2008 9/27/2009
1017 123 10987 9/28/2009 12/31/4712 (high date ~ which means currently with this marketer)
1023 124 10541 12/03/2010 12/31/4712
ARCHIVE
Key AccountID Marketer StartDate EndDate
1015 124 10526 8/3/2008 12/02/2010
1033 125 10987 01/01/2011 01/31/2012
So my query needs to return the following:
123 John Doe 10526 8/3/2008 9/27/2009
124 Jane Donaldson 10541 12/03/2010 12/31/4712 (this is the later of the two records for this account between archive and marketer_account tables)
125 Harold Douglas 10987 01/01/2011 01/31/2012 (he is only in archive, so get this record)
I'm unsure how to proceed in one query. Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
open CURSOR_ACCT
select AccountID
from
ACCOUNT A,
MARKETER_ACCOUNT M,
ARCHIVE R
where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
where M2.AccountID = A.AccountID),
(select max(R.EndDate) from Archive R2
where R2.AccountID = A.AccountID)
and upper(A.Name) like parameter || '%'
<can you do a NVL like this? probably not... I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
(parameter could be "DO", so I return all names starting with DO...)if I understand your description I would assume that for John Dow we would expect the second row from marketer_account ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
drop table account;
drop table marketer_account;
drop table marketer_account_archive;
create table account (
id number
, name varchar2(20)
insert into account values (123, 'John Doe');
insert into account values (124, 'Jane Donaldson');
insert into account values (125, 'Harold Douglas');
create table marketer_account (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
create table marketer_account_archive (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account_archive;
with
basedata as (
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account_archive
basedata_with_max_intervals as (
select key, AccountId, MktKey, FromDt, ToDate
, row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
from basedata
filtered_basedata as (
select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
select a.id
, a.name
, b.MktKey
, b.FromDt
, b.ToDate
from account a
join filtered_basedata b
on (a.id = b.AccountId)
ID NAME MKTKEY FROMDT TODATE
123 John Doe 10987 28.09.2009 31.12.4712
124 Jane Donaldson 10541 03.12.2010 31.12.4712
125 Harold Douglas 10987 01.01.2011 31.01.2012
If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
Regards
Martin -
Table containeing both the purchase order number and the sales order number
hi all!!!
what is table that contains both the purchase order number and sales order number corresponding to that purchase order number.
Moderator message: please search before posting.
Edited by: Thomas Zloch on Jan 31, 2012Hi Sunny,
Yes they are same. You will be creating a purchase order in ME21n. After creating purchase order you will shown a number for that order.
Reward points if useful.
Thanks,
Swamy Kunche -
Table containing both SC and PO number
Hello experts,
Can any one among you let me know the table consisiting of both Shopping cart and purchase order number in SRM.
I appreciate your quick response, and be rewarded with desired points.
regards,
IGA.Hi,
For Classic scenario,ou can pass the Line Item GUID (CRMD_ORDERADM_I) of the shopping cart to the table BBP_PDBEI ( field GUID) and get the PO details.
All the SC details can be seen in table CRMD_ORDERADM_H(Header) and CRMD_ORDERADM_I(Item).
You can also use the FM 's:
Shopping Cart: BBP_PD_SC_GETDETAIL.
PO: BBP_PD_PO_GETDETAIL.
IF you are on ECS,then the local PO and SC details can be found in the tables CRMD_ORDERADM_H(Header) and CRMD_ORDERADM_I(Item).
BR,
Disha.
Do reward points for useful answers. -
Join two tables to query the difference of both
Hi,
I think my problem is not the hardest, but I don't find a solution.
- i have two tables: t_old, t_new
- both have the same attribute (item_nr)
- t_new exists of some rows from t_old and some new rows
I want to query only the new rows from t_new, that aren't in the table t_old.
Who can help me please..???
Regards,
Steffenwrong forum, sorry, but i got it in another forum:
select * from t_new n
where not exists
(select 1 from t_old o
where n.item_nbr = o.item_nbr)
(THX to Keith Jamieson)
or
select * from t_new
minus
select * from t_old
(THX to Boneist)
Maybe you are looking for
-
My download page has disappeared and I can't seem to download from my hotmail account.
Something has gone wrong with firefox. I use it to access the net. I use it to access my email account. But suddenly my ability to download items sent to me in my mail can't be downloaded. In the past when I clicked on download a download page appear
-
Can't find photo gallery in files
I want to transfer/copy my photos and videos from my internal storage on my Razr Maxx HD. When I go into files, I don't see them anywhere! I have photos from messaging, but not the photos/videos that I took with my phone.
-
Adobe 6.0 Standard and Reader 9.0 question
I have an end user that uses Adobe 6.0 Standard edition (licensed) to edit documents and use the Print plugin for specific applications that he uses in our company. He was having an issue opening a PDF file, because he needs to have Adobe Reader 8 or
-
Wireless keeps disconnect​ing
I have an old Portege M200 tablet laptop using Windows XP that has the intel(R) pro/wireless 2200BG wireless connection that was communicating fine with my old Linksys wireless-g router. I recently replaced the wireless router to a NetGear WNR1000v2
-
Install issue with sgd 4.40 on Linux
Folks, When I try to install the sgd 4.40 rpm ,I get the below error message Preparing... ########################################### [100%] IMPORTANT: ttaserv/ttasys users not correctly defined. Setup will now exit. You must define users before you