Need help with network Test lab configuration

I have the Setup VLANS on Cisco switch (4506) and I put aside in ESX (3.5) in its own switch port, but I'm not able to get the systems on this switch to connect.  They seem not to see each other even if they are on the same subnet and the same vlan.  Ideas?

Looks like it's maybe a configuration problem of VLAN.  On the Cisco switch is the port connected to the network test card NETWORK set up as a trunk port?  If you want to make sure it has 400 VLAN assigned to the trunk.  If it is not defined as a trunk port, you must remove the tag VLAN from your virtual switch.  If the port of Cisco is not defined as a trunk, then the Cisco switch sends tags VLAN to the vSwitch and the vSwitch is looking for packets marked as 400 and not something else by the way to the virtual machine.  Either the trunk or the vSwitch VLAN parameter will be changed to solve the communication.

If the end goal is to have several VIRTUAL networks appear on network vSwitch test then I'd go the route set port of Cisco to the trunk.  If you just want a VLAN to appear on the vSwitch test then I would keep the port Cisco defined how it is assigned to 400 VLANS and delete reference VLAN of the vSwitch.

Hope this helps, please give points if it was useful.

Tags: VMware

Similar Questions

  • Need help with network home using Airport extreme

    I need help with my home network.  I'm not very aware when it comes to all things network.  Here's how my network is currently set up.

    Cable modem to Airport Extreme for Gigabit Switch.  Cables come out of the switch to all areas of the House.  I have 2 other extreme airport connected in other rooms of the House directly on the wall that dates back to the switch.  I hope I am explaining that properly.

    My problem is that this seems to have caused some of my connections cable does not work.  When everything is configured, it has worked well.  All connections in the House worked.  Then we have disconnected one of the extreme airport and moved to another location in the House to have the best wifi coverage.  Since that time, a lot of the ethernet wall plugs are not working.  For example, when I plug in my Macbook Pro in making ethernet in my kitchen, it says connected but it has an assigned ip address and cannot connect to the internet.

    Any help you can provide would be great.

    I would like to get the return tech to help you to...

    But it is likely that something (or someone) has tampered with the settings.

    The layout is fine... but you can cause problems with the network by creating a loop.

    This can happen because the AE you moved is connected wrongly... somewhere in the network it is connected to the switch again.

    Or AE is set to expand wireless... It's FAKE... It will loop the network on the back main EI wireless.

    Unplug the two AE you have that function as extensions...

    Turning off everything else... then it works again...

    Do it in this order.

    Modem... Wait 2 min

    AE... Wait 2 min

    Switch.

    Now check that the network is working properly... power of customers in various locations and make sure everything is good.

    If so, then manually reset the two AE of factory and redo their installation.

  • Need help with my hard disk configuration

    Hi guys,.
    Ive read a lot about the best configuration of hard disk for my editing video pc... but I need some feedback. Here are my specs. Im running Windows 10 with this HD configuration. I use my system for Premiere Pro, Photoshop, Lightroom, and After Effects.

    1 SDS drive 250 GB operating system, program files, swap file

    2 HDD (sata III) of disk 2 TB stockmedia / assets / my documents

    Disc 3 HARD drive (sata III) projects 2 TB

    4 drive HARD drive (sata III) 750Go export/renders, PP previews

    5 HARD drives (sata III) of disk cache AE, PP, scratchdisk photoshop, captured 750Go audio/video media cache


    If it would be really beneficial to my performance, I also have another HARD drive disc (sataIII) 2 TB which I could build in the case.

    It looks all right? Or you guys change anything? I have a RAID configuration, but what I understand... RAID 3 or 5 would have need of more disks (same size preferred) and preferably a hardware controller. But my budget will not allow this for now.

    Thanks in advance for your comments guys...

    You probably already read this, but if you do not page Tweakers: Disk Setup

    you drive configuration looks good, you can use the windows resources monitor to determine if the readers are struggling as well.

    If I had to change something, I would try 2x2tb raid 0 (disk 2 and 3) for media/assets/projects using mbd raid (if your mbd supports raid). I might even try to add the spare hard drive 2 TB, 3x2tb RAID 0 for performance even more. If 'my documents' is just random storage (not for your active video projects), you can move to another drive out of the raid, as the 4 drive or another room to spare. Since you already have these parts, raid can be a good way to boost performance for free. any raid can add some risks more data loss, so you just make sure that your backups stick to the currents. You can save a copy of the project first (just the file .prproj) in a few different places at the end of your editing sessions, or use auto-enregistre to another location, to avoid having to save as much.

    Moreover a unique fast sata ssd is comparable to 3 hard drives in raid, so you could look (s) ssd, sata for better cheaper and simpler vs an expensive hardware raid card. SATA ssd prices keep falling off and show no signs of slowing down, so if/when you get some later, they could be even more affordable.

  • Need help with a test 'IF '.

    I have a .swf that I do, where you can make several movieClips frame-by-frame using the previous and next. The ActionScript in underneath and worked very well.

    Stop();

    shin_next.addEventListener (MouseEvent.CLICK, nextShin);

    shin_back.addEventListener (MouseEvent.CLICK, prevShin);

    function nextShin(e:Event):void {}

    If (shin.currentFrame < 2) {}

    shin.nextFrame ();

    } else {}

    shin.gotoAndStop (1);

    }

    }

    function prevShin(e:Event):void {}

    If (shin.currentFrame > 1) {}

    shin.prevFrame ();

    } else {}

    shin.gotoAndStop (2);

    }

    }

    clot_next.addEventListener (MouseEvent.CLICK, nextClot);

    clot_back.addEventListener (MouseEvent.CLICK, prevClot);

    function nextClot(e:Event):void {}

    If (clot.currentFrame < 4) {}

    clot.nextFrame ();

    } else {}

    clot.gotoAndStop (1);

    }

    }

    function prevClot(e:Event):void {}

    If (clot.currentFrame > 1) {}

    clot.prevFrame ();

    } else {}

    clot.gotoAndStop (4);

    }

    }

    pan_next.addEventListener (MouseEvent.CLICK, nextPan);

    pan_back.addEventListener (MouseEvent.CLICK, prevPan);

    function nextPan(e:Event):void {}

    If (pan.currentFrame < 4) {}

    pan.nextFrame ();

    } else {}

    pan.gotoAndStop (1);

    }

    }

    function prevPan(e:Event):void {}

    If (pan.currentFrame > 1) {}

    pan.prevFrame ();

    } else {}

    pan.gotoAndStop (4);

    }

    }

    lso_next.addEventListener (MouseEvent.CLICK, nextLso);

    lso_back.addEventListener (MouseEvent.CLICK, prevLso);

    function nextLso(e:Event):void {}

    If (lso.currentFrame < 2) {}

    lso.nextFrame ();

    } else {}

    lso.gotoAndStop (1);

    }

    }

    function prevLso(e:Event):void {}

    If (lso.currentFrame > 1) {}

    lso.prevFrame ();

    } else {}

    lso.gotoAndStop (2);

    }

    }

    rso_next.addEventListener (MouseEvent.CLICK, nextRso);

    rsock_back.addEventListener (MouseEvent.CLICK, prevRso);

    function nextRso(e:Event):void {}

    If (rso.currentFrame < 2) {}

    rso.nextFrame ();

    } else {}

    rso.gotoAndStop (1);

    }

    }

    function prevRso(e:Event):void {}

    If (rso.currentFrame > 1) {}

    rso.prevFrame ();

    } else {}

    rso.gotoAndStop (2);

    }

    }

    What I'm trying to do now is to program an "IF" test, comparing the currentFrame #s of all no. 5 movieClips to trigger a 6 for movieClip go to a correspondent of the image. I wrote the following 'IF' test, being executed in each of the previous commands.

    function checkDial(e:Event):void {}

    If ((shin.currentFrame == 1) & & (clot.currentFrame == 1) & & (pan.currentFrame == 1) & & (lso.currentFrame == 1) & & (rso.currentFrame == 1)) {}

    dial.gotoAndStop (1);

    } else {}

    dial.gotoAndStop (2);

    }

    }

    However, no matter where I insert the "checkDial" command, I get the following compilation error:

    1136: number of incorrect arguments.  1 EXPECTED

    Can someone tell me please how to fix this?

    Forgive my noobness, I'm not an expert, nor I claim to be, but I'm trying to help a friend with a project.

    What look like your calls to the checkDial function?  I suspect that this is perhaps where the error arises.  An argument must be passed to the function based on how you defined.  If you have not to pass and then get rid of the "e: Event.

  • Need help with network controller update

    It seems that my controller network and PCI simple Communications controller are not installed. Can someone give me a link to install it please?
    My material, I would
    PCI\VEN_10EC & DEV_8171 & SUBSYS_1467103C & REV_10
    PCI\VEN_10EC & DEV_8171 & SUBSYS_1467103C
    PCI\VEN_10EC & DEV_8171 & CC_028000
    PCI\VEN_10EC & DEV_8171 & CC_0280

    Hello:

    You need this driver for your laptop wireless card.

    http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?spf_p.tpst=swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_102577_1%257CswEnvOID%253D%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

    See if this driver works for the PCI Simple:

    http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?sp4ts.Oid=4095873 & spf_p.tpst = swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_118167_1%257CswEnvOID%253D4053%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

  • Need help with the disks 'unreadable' configuring software raid after the death of the startup disk and system restored.

    I'm looking for some advice on how to restore a windows xp installation software raid 5 that was running on my XP system. I had a problem when the startup disk has failed, but I was able to backup the system before it can. I replaced the drive and restored the system and everything came, but I was not smart to do this and accidently left the readers connected when restoring raid. I don't know if windows has done something when I tried to install XP on the new drive, or maybe something else has happened when I restored the system from the backup, but my raid drives can not be used. There was a moment in the restaurant business I saw a message on the MBR, but I thought that was just for the drive being restored. I didn't have a single player who held any information on the other disks in the system, but I'm not 100% sure on that.

    When the system boots the windows logo screen takes 10-20 minutes before you get on the desktop. Windows Disk Manager takes 20-30 minutes to fill the list of drives and status on the disks three raid is 'dynamic' and 'unreadable' is not reassuring. I suspect it's a problem MBR or partition table that must be corrected before trying to reactive the raid, but this is just speculation.

    The raid drives are on a promise ide/scsi disk and make it appear to start correctly with names and sizes. After that I get nothing. I do not have another scsi controller (or), but I thought I'd try active @ partition recovery to see if she can find information on the disks.

    I hope someone has some experience with recovery like this, because this is a first for me. I thought I was pretty sure running a raid-5, but wouldn't you know, the tech gods have found a way to crush my plans...

    Thanks in advance for any help!

    Hello

    Thank you for visiting the Microsoft answers community site. Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the TechNet Windows XP IT Pro Forums.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • Need help with network drivers

    OK, so I was on win 7 trying to dual boot with Ubuntu when my os disappeared, so I installed Linux Mint and downloaded win 7 on that I then did a boot able USB and installed it via that he started toward the top and then I got an error saying no connection and no connection available even when I plugged it in via a cable Ethernet and it still does not work I tried to install some drivers intell another question, but it did not work I am running a NE56R of the entrance door if it help thank you!

    Install the drivers for your product from the link below.

  • Need help with network adapter WLAN which disappears

    802.11n WLAN driver adapt
    Lenovo IdeaCentre q150 10053
    Win 7 Home premium

    Some how I screwed up my computer.  Long story short, wireless network adapter disappeared as an option, so I downloaded the drivers for a USB key.  Run the wizard, but I always get an error saying that the adapter is missing the drivers.

    Any suggestions to fix this?

    Thank you
    Van

    Hello

    Have you made changes before the start of this issue?
    See the link below to troubleshoot the network adapter.
     
    I hope this helps.
  • Need help with network inside and outside Transmittion script

    Hi, I have a problem in my script. I would get Vm net.received.average and net.transmitted.average. Somewhere, it displays the empty output for me, can I have a sample of script on obtaining transmittion of network for 7 days

    My script:

    $report = @ (get - Vm = $vms). where {$_.} PowerState - eq "Receptor"} $lastWeek = (get-date). AddDays(-7) foreach ($vm in $vms) {$vmNet = "" |} Select VmName, NetworkReceive, NetworkTransmit $statReceive is Get-Stat-entity ($vm) - start $lastWeek - finishing (Get-Date) - MaxSamples 1 - net.received.average stat. Group-object - property Instance $statTrans = Get-Stat-entity ($vm) - start $lastWeek - finishing (Get-Date) - MaxSamples 1 - net.transmitted.average stat. {Group-object - property Forum $vmNet.VmName = $vm.name $vmNet.NetworkReceive = "{0: F2}" f $statReceive.value $vmNet.NetworkTransmit = "{0: F2}" f $statTrans.value $report += $vmNet} $report | Select VmName, NetworkReceive, NetworkTransmit | Export-csv "c:\q33.csv".
    Thank you

    Both are related to the use of aggregation running on your vCenter

    Historical data interval 4 are grouped once a day, and on your vCenter this SQL task seems to be planned at 08:00.

    That is why the time stamp.

    Statistical data are aggregated to one historical interval to another.

    Since ask us the historical interval 4 (with the IntervalMins parameter), the aggregagtion to this historical interval is not yet made.

    This is why the last day 2 are not present in the report.

    You can play with the - Start and - finishing settings to have a period of 7 days which is at least two days yet at the time.

    $report = @()
    $metrics = "net.received.average","net.transmitted.average"
    $vms = Get-Vm | where {$_.PowerState -eq "PoweredOn"}
    $start = (get-date).AddDays(-7)
    $finish = $start.AddDays(7)
    
    Get-Stat -IntervalMins 1440 -Entity ($vms) -start $start -finish $finish -stat $metrics -Instance "" | `  Group-Object -Property Timestamp,EntityId | %{
        $vmNet = ""| Select VmName, Timestamp, NetworkReceive, NetworkTransmit
        $vmNet.VmName = $_.Group[0].Entity.Name
        $vmNet.Timestamp = $_.Group[0].Timestamp
        $vmNet.NetworkReceive = "{0:f2}" -f (($_.Group | where {$_.MetricId -eq "net.received.average"} | Measure-Object -Property Value -Sum).Sum)
        $vmNet.NetworkTransmit = "{0:f2}" -f (($_.Group | where {$_.MetricId -eq "net.transmitted.average"} | Measure-Object -Property Value -Sum).Sum)
        $report += $vmNet}
    $report | Export-csv "c:\q33.csv" -NoTypeInformation -UseCulture
    
  • 4540 proBook s product ID C9K7O: I need help with network controller driver installation.

    I had to install Windows 7 Premium 64-bit operating system and the network controller was not recognized and therefore, the drivers were not installed. That's what I see in Device Manager:

    PCI\VEN_168C & DEV_0032 & SUBSYS_1838103C & REV_01

    PCI\VEN_168C & DEV_0032 & SUBSYS_1838103C

    PCI\VEN_168C & DEV_0032 & CC_028000

    PCI\VEN_168C & DEV_0032 & CC_0280

    I got a driver to download from technical support, but that it does not recognize the controller either. Reference case # (deleted content)

    Dad.

    Have you tried this one?

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=5229456 & swItemId = ob_128686_1 & swEnvOid = 4059

    REO

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • NEED HELP WITH SERVICE PACK 3. After downloading and the computer goes into rebooting mode I get the screen to restart with three options, network security safe mode and the other thing. ,

    NEED HELP WITH SERVICE PACK 3.  After downloading and the computer goes into rebooting mode I get the screen to restart with three options, network security safe mode and the other thing. , but it of although he gets, he keeps countdown to restart and reboots and restarts, over and over again, never reboots, same screen. my computer won't let me out this screen even after I turned off the computer and turn it back on, I get the same screen. the only way I can get out of this is to erase my computer everything and bring it back to factory, right out of the box, this big headaches. Thanks for anyone who can help me. PS. Keep the answers in simple terms please.

    Hi BSRC$, in stock

    1. You have security software installed on the computer?
    2. You receive an error message when you restart the computer?

    Reinstalling Windows XP to the factory setting would not be the first option.

    It is possible that some third-party programs or the services installed on the computer interfere with the installation of service pack 3.

    I suggest that you try to uninstall service pack 3 from the computer by using the recovery console and subsequently ask the article below for what to do before installing the service pack 3on the computer.

    How to remove Windows XP Service Pack 3 from your computer

    http://support.Microsoft.com/kb/950249

    Steps to take before you install Windows XP Service Pack 3

    http://support.Microsoft.com/kb/950717

  • Need help with configuration on cisco vpn client settings 1941

    Hey all,.

    I just bought a new router 1941 SRI and need help with the configuration of the parameters of the VPN client. Orders aspect a little different here, as I'm used to the configuration of ASA and PIX for vpn, routers not...

    If anyone can help with orders?

    I need the installation:

    user names, authentication group etc.

    Thank you!

    Take a peek inside has the below examples of config - everything you need: -.

    http://www.Cisco.com/en/us/products/ps5854/prod_configuration_examples_list.html

    HTH >

    Andrew.

  • Need help with the IP configuration on vm ware for the installation of 11 GR 2 on linux vmware 6 on win7

    Need help with the ip configuration on/etc/hosts for the installation of 11 GR 2 on linux vmware 6 on win7.

    Let me know if you need more info... in fact I have a setting error while installation said

    -(/ etc/hosts has no correct entry for the host name)

    Host: 192.168.85.100

    Win7 ip: 192.168.1.x

    Thank you...

    (host computer)

    Win7 64 bit

    (vmware)

    Oracle Linux Server 6.3 version

    Release of Red Hat Enterprise Linux Server 6.3 (Santiago)

    Oracle Linux Server 6.3 version

    -(/ etc/hosts has no correct entry for the host name)

    Then post your/etc/hosts.

    Host: 192.168.85.100

    Win7 ip: 192.168.1.x

    Why 85? have you tried 192.168.1.100?

  • Need help with PL/SQL query complex

    I need help with a query that need access to data from 3 tables. That's what I did

    I created 3 tables

    CREATE TABLE post_table
    (
    post_id varchar (20),
    datepost DATE,
    KEY (post_id) elementary SCHOOL
    ) ;

    CREATE TABLE topic
    (
    TOPIC_ID varchar (20),
    name varchar (20),
    PRIMARY KEY (topic_id)
    );

    CREATE TABLE blogpost_table
    (
    TOPIC_ID varchar (20),
    post_id varchar (20),
    PRIMARY KEY (topic_id, post_id);
    FOREIGN KEY (topic_id) REFERENCES topic (topic_id) ON DELETE CASCADE,
    FOREIGN KEY (post_id) REFERENCES post_table (post_id) ON DELETE CASCADE
    );


    Now, I inserted a few values in these tables as

    INSERT INTO post_table VALUES ('p1', to_date ('2009-09-14 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p2', to_date ('2009-07-18 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p3', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p4', to_date ('2009-03-11 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p5', to_date ('2009-07-13 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p6', to_date ('2009-06-12 18:00 "," MM/DD/YYYY mi:ss'));))
    INSERT INTO post_table VALUES ('p7', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))

    INSERT INTO VALUES subject ("t1", "baseball");
    INSERT INTO category VALUES ('t2', 'football');

    INSERT INTO blogpost_table VALUES ("t1", "p1");
    INSERT INTO blogpost_table VALUES ('t1', 'p3');
    INSERT INTO blogpost_table VALUES ("t1", "p4");
    INSERT INTO blogpost_table VALUES ('t1', 'p5');
    INSERT INTO blogpost_table VALUES ('t2', 'p2');
    INSERT INTO blogpost_table VALUES ('t2', 'p6');
    INSERT INTO blogpost_table VALUES ("t2", "p7");


    I'm launching SQL queries on the table in this topic.

    I want to write a SQL query that returns me the name of a topic (s) and the number of blog_post (s) associated with the topic in descending order of the number of blog posts created in July.

    Can someone please help me to write this query?

    Thank you

    Published by: user11994430 on October 9, 2009 07:24

    Thanks for the test of the configuration!

    SQL>SELECT   t.NAME, COUNT(*)
      2      FROM topic t, blogpost_table b, post_table p
      3     WHERE b.topic_id = t.topic_id
      4       AND p.post_id = b.post_id
      5       AND p.datepost >= DATE '2009-07-01'
      6       AND p.datepost < DATE '2009-08-01'
      7  GROUP BY t.NAME
      8  ORDER BY COUNT(*) desc;
    
    NAME                   COUNT(*)
    -------------------- ----------
    baseball                      2
    soccer                        2
    

    HTH, Urs

Maybe you are looking for