Order of country, city and items in Breadcrumbs SEO - seo

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 4 hours ago.
Improve this question
I have to put location and houses in breadcrumb trail. I was wondering if the order is important from the SEO perspective (From user's perspective both are useful depending upon the need. I am only interested in SEO). This is a site for investment analysis so the user is more interested in apartment (or condo etc) prices in cities across locations
Home below is a link to the home page
Home > apartments > Illinois > Chicago
or
Home > Illinois > Chicago > apartments
Home > Illinois > Chicago > houses
Home > Illinois > Chicago > Condos
I also have a few items from UK and Ireland within the same site. I am thinking
Home > UK > London > Apartments
or
Home > Apartments > London > UK
but if I put country UK then do I need to modify all USA breadcrumbs by inserting country
Home > apartments > USA > Illinois > Chicago
or
Home > USA > Illinois > Chicago > apartments
Home > USA > Illinois > Chicago > houses
Home > USA > Illinois > Chicago > Condos
I think it will be unnecessary repetition when 99% of entries are from USA

Related

turicreate visualizations (Google Collab environment) - SFrame.explore response "Materializing SFrame"

In a very simple workbook load data into an Sframe named "Students".
When I execute "Students" I get the expected results (just cut and pasted not actual results)
First Name Last Name Country age
Bob Smith United States 24
Alice Williams Canada 23
Malcolm Jone England 22
Felix Brown USA 23
Alex Cooper Poland 23
Tod Campbell United States 22
Derek Ward Switzerland 25
[7 rows x 4 columns]
But when I enter "Students.explore()" I get the results
"Materializing SFrame"
I expected a GUI with a rich display describing the data. This is what I get when I use graphlab.create in a non - Google Collaboratory workbook.
Below is the code description and link to the turicreate API help.
"SFrame.explore([title]) Explore the SFrame in an interactive" GUI.https://apple.github.io/turicreate/docs/api/turicreate.visualization.html
Google Colab is run in the Cloud. So, it can't open a new app window on your computer.
You may want to try Local Runtime

Combine Multiple ID's as the variable SQL

Writing a report and having an issue I was hoping someone could guide me in the right direction
I have 2 tables tbl_RegisterMain_Holding and LyndseyCouncils
In the tbl_RegisterMain_Holding there is 12 columns that have LA_id_Build (1 -12) in them
I want to be able to use the variable (5,12,23) = ‘East Midlands’ as the variable that will bring back any rows that have any of those numbers in.
Here is what the data looks like in the LyndseyCouncils table
LA_ID Listings
5 East Midlands
12 East Midlands
23 East Midlands
15 East of England
21 East of England
25 East of England
79 London
80 London
201 London
3 London and the Home Counties
11 London and the Home Counties
13 London and the Home Counties
352 North East
365 North East
372 North East
Here is my Query I’m working on
SELECT rm.Email,Forname,Surname,lc.listings
FROM dbo.tbl_RegisterMain_Holding AS rm
INNER JOIN [dbo].[LyndseyCouncils] AS lc
ON rm.LA_ID_live = lc.LA_ID
WHERE
(rm.LA_ID_BUILD1 = #COUNCIL or rm.LA_ID_BUILD2 = #COUNCIL or rm.LA_ID_BUILD3 = #COUNCIL
or rm.LA_ID_BUILD4 = #COUNCIL
or rm.LA_ID_BUILD5 = #COUNCIL or rm.LA_ID_BUILD6 = #COUNCIL
or rm.LA_ID_BUILD7 = #COUNCIL or rm.LA_ID_BUILD8 = #COUNCIL or rm.LA_ID_BUILD9 = #COUNCIL
or rm.LA_ID_BUILD10 = #COUNCIL
or rm.LA_ID_BUILD11 = #COUNCIL or rm.LA_ID_BUILD12 = #COUNCIL)
This would work if I was using just one La_ID but because I’m using multiple LA_ID It should be IN ()
But have no idea how I would write that,
Maybe I’m going about this in the wrong way.
Any help would be appreciated.
Thanks

Joining a Table with Itself with multiple WHERE statemetns

Long time reader, first time poster.
I'm trying to consolidate a table I have to the rate of sold goods getting lost in transit. In this table, we have four kinds of products, three countries of origin, three transit countries (where the goods are first shipped to before being passed to customers) and three destination countries. The table is as follows.
Status Product Count Origin Transit Destination
--------------------------------------------------------------------
Delivered Shoes 100 Germany France USA
Delivered Books 50 Germany France USA
Delivered Jackets 75 Germany France USA
Delivered DVDS 30 Germany France USA
Not Delivered Shoes 7 Germany France USA
Not Delivered Books 3 Germany France USA
Not Delivered Jackets 5 Germany France USA
Not Delivered DVDS 1 Germany France USA
Delivered Shoes 300 Poland Netherlands Canada
Delivered Books 80 Poland Netherlands Canada
Delivered Jackets 25 Poland Netherlands Canada
Delivered DVDS 90 Poland Netherlands Canada
Not Delivered Shoes 17 Poland Netherlands Canada
Not Delivered Books 13 Poland Netherlands Canada
Not Delivered Jackets 1 Poland Netherlands Canada
Delivered Shoes 250 Spain Ireland UK
Delivered Books 20 Spain Ireland UK
Delivered Jackets 150 Spain Ireland UK
Delivered DVDS 60 Spain Ireland UK
Not Delivered Shoes 19 Spain Ireland UK
Not Delivered Books 8 Spain Ireland UK
Not Delivered Jackets 8 Spain Ireland UK
Not Delivered DVDS 10 Spain Ireland UK
I would like to create a new table that shows the count of goods delivered and not delivered in one row, like this.
Product Delivered Not_Delivered Origin Transit Destination
Shoes 100 7 Germany France USA
Books 50 3 Germany France USA
Jackets 75 5 Germany France USA
DVDS 30 1 Germany France USA
Shoes 300 17 Poland Netherlands Canada
Books 80 13 Poland Netherlands Canada
Jackets 25 1 Poland Netherlands Canada
DVDS 90 0 Poland Netherlands Canada
Shoes 250 19 Spain Ireland UK
Books 20 8 Spain Ireland UK
Jackets 150 8 Spain Ireland UK
DVDS 60 10 Spain Ireland UK
I've had a look at some other posts and so far I haven't found exactly what I'm looking for. Perhaps the issue here is that there will be multiple WHERE statements in the code to ensure that I don't group all shoes together, ore all country groups.
Is this possible with SQL?
Something like this?
select
product
,sum(case when status = 'Delivered' then count else 0 end) as delivered
,sum(case when status = 'Not Delivered' then count else 0 end) as not_delivered
,origin
,transit
,destination
from table
group by
product
,origin
,transit
,destination
This is rather easy; instead of one line per Product, Origin, Transit, Destination and Status, you want one result line per Product, Origin, Transit and Destination only. So group by these four columns and aggregate conditionally:
select
product, origin, transit, destination,
sum(case when status = 'Delivered' then "count" else 0 end) as delivered,
sum(case when status = 'Not Delivered' then "count" else 0 end) as not_delivered
from mytable
group by product, origin, transit, destination;
BTW: It is not a good idea to use a keyword for a column name. I used double quotes to use your column count, which is standard SQL, but I don't know if it works in Google BigQuery. Maybe it must be "Count" rather than "count" or something entirely else.)
SELECT
product, origin, transit, destination,
SUM([count] * (status = 'Delivered')) AS delivered,
SUM([count] * (status = 'Not Delivered')) AS not_delivered
FROM mytable
GROUP BY 1, 2, 3, 4

How to create infinite treeview through sql recursive query

Would appreciate if anybody help to create a recursive query to make infinite treeview. Sample data and output has been shown below for ready reference.
Contents of Details field will be root elements which do not have 'GroupCode'.
TABLE DATA (Example table name is 'Area')
=========================================
>GroupCode Code Details (Continent/Country/Province or Division/City/Area/Street)
>========= ==== =================================================================
> 1 Asia
> 2 Europe
> 3 Africa
> 4 North America
> 5 South America
> 6 Australia
> 7 Antarctica
>1 8 Bangladesh
>1 9 India
>1 10 Pakistan
>8 11 Dhaka
>8 12 Chittagong
>12 13 Agrabad
>12 14 New-Market
>12 15 Halishahar
>9 16 West Bengal
>16 17 Kolkata (Calcutta)
>17 18 XYZ Area
>13 19 Road No. 111
>13 20 Road No. 222
>
>Tree View
>========================================================
>-> (1) Asia
> -> (8) Bangladesh
> -> (12) Chittagong
> -> (13) Agrabad
> -> (19) Road No. 111
> -> (20) Road No. 222
> -> (14) New-Market
> -> (15) Halishahar
>
> -> (9) India
> -> (16) West Bengal
> -> (17) Kolkata
> -> (18) XYZ Area
>
Thanks,
Nowshad (Cell # +880-1713-442068)

Geo maps setup in GoodData

Can anyone help me with preparing data for the new feature Geo Maps. I want to show the below data on geo maps.
Country Name Sales
Russia 1244
Canada 3553
Germany 5345
Australia 2456
France 2566
United Kingdom 6743
India 3677
United States 5633
Thanks in advance,
the setup is quite easy and you can find out more information here:
https://developer.gooddata.com/article/setting-up-data-for-geo-charts
Basically it is about setting up the correct date type for columns that represents geo-information.
JT