- 受付中
報酬付き
legalants
Legalants Admin, orchestrating legal solutions with precision at Legalants.com, where expertise meets efficiency. https://www.legalants.com/
- みんなの回答 (1)
- 専門家の回答
みんなの回答
- AIエージェント あい(@OKWAVE-AI)
- ベストアンサー率87% (2035/2314)
関連するQ&A
- http://任意のサブドメイン.examepl.com⇒http://exameple.com/ へ301 リダイレクトしたい
あるレンサバ業者で、VPSで、ヴァーチャルホストで、 http://exameple.com(1) http://www.exameplc.com (>>(1)へ301リダイレクト RedirectMatch 301 ^/(.*)$ http://example.com/$1 ってかんじで ) http://admin.exameple.com/ を設定しています。 で、http://想定していないサブドメ.exampele.comへのアクセスがあり、 この場合、URLはそのままで、http://exameple.comが表示されてしまいます。 なお、DNSは(network solutionsのですが、) Host TTL Numeric IP www 7200 ***.***.**.*** @ (None) 7200 ***.***.**.*** * (All Others) 7200 ***.***.**.*** admin .example.com 7200 ***.***.**.*** としています。 で、admin以外のサブドメがある場合は、http://exampele.comへ301 リダイレクトさせたいのですが、どうすればいいのでしょうか? よろしくお願いいたします。
- ベストアンサー
- その他([技術者向] コンピューター)
- Where to? のような言い方
タクシーで使う Where to? のような言い方は、他にもありますでしょうか? Where from? Where in? Where at? Where by? Who with? When at? When by? When in? How by?
- ベストアンサー
- 英語
- 助けて>< 3つのテーブルで簡単な集計
下記のような3種類のテーブルがあります。 これを集計して、指定したユーザーの指定月のアクセス日時と売上げ金額を表にしたいと思っています。 こんな感じに。 +--+--------+----------+-------+-----+ | id | username| date | access | sales | +--+--------+----------+-------+-----+ | 1 | admin | 2010-11-13 | 2 | 5000 | | 1 | admin | 2010-11-14 | 2 | 5000 | | 1 | admin | 2010-11-15 | 1 | 20000 | +--+--------+----------+-------+-----+ SELECT u.id AS id, u.username, DATE(a.created_at) AS date, COUNT(*) AS access, SUM(s.amount) AS sales FROM sf_guard_user u INNER JOIN sales s ON u.username = s.user_id LEFT JOIN access_log a ON u.username = a.user_id WHERE (u.username = 'admin' AND a.created_at > '2010-11-01 00:00:00' AND a.created_at < '2010-11-30 23:59:59') GROUP BY date ORDER BY a.created_at; とやってみたのですがダメでした;; ■ユーザー情報テーブル mysql> select id,username from user; +--+---------+ | id | username | +--+---------+ | 1 | admin | +--+---------+ ■アクセスログテーブル mysql> select * from access_log; +--+-------+--------+------------------+ | id | user_id | ip | created_at | +--+-------+--------+------------------+ | 1 | admin | 127.0.0.1 | 2010-11-13 21:56:54 | | 2 | admin | 127.0.0.1 | 2010-11-13 21:56:54 | | 3 | admin | 127.0.0.1 | 2010-11-14 21:56:54 | | 4 | admin | 127.0.0.1 | 2010-11-14 21:56:54 | | 5 | admin | 127.0.0.1 | 2010-11-15 21:56:54 | +--+-------+--------+------------------+ ■売上げ金額テーブル mysql> select * from sales; +--+-------+------+------------------+ | id | user_id | amount| created_at | +--+-------+------+------------------+ | 1 | admin | 5000 | 2010-11-13 21:56:54 | | 2 | admin | 5000 | 2010-11-14 21:56:54 | | 3 | admin | 5000 | 2010-11-15 21:56:54 | | 4 | admin | 5000 | 2010-11-15 21:56:54 | +--+-------+------+------------------+
- ベストアンサー
- MySQL
- SQLで、アクセス集計について困っています。
アクセス集計について困っています。 mysql> desc access_log; +------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+-------------+------+-----+---------+----------------+ | id | bigint(20) | NO | PRI | NULL | auto_increment | | user_id | varchar(50) | YES | | NULL | | | ip | varchar(15) | YES | | NULL | | | created_at | datetime | NO | | NULL | | | updated_at | datetime | NO | | NULL | | +------------+-------------+------+-----+---------+----------------+ 5 rows in set (0.02 sec) mysql> select * from access_log; +----+---------+-----------+---------------------+---------------------+ | id | user_id | ip | created_at | updated_at | +----+---------+-----------+---------------------+---------------------+ | 1 | admin | 127.0.0.1 | 2010-11-13 21:56:54 | 2010-11-13 23:07:27 | | 2 | admin | 127.0.0.1 | 2010-11-13 21:56:54 | 2010-11-13 23:07:27 | | 3 | admin | 127.0.0.1 | 2010-11-14 21:56:54 | 2010-11-13 23:07:27 | | 4 | admin | 127.0.0.1 | 2010-11-14 21:56:54 | 2010-11-13 23:07:27 | | 5 | admin | 127.0.0.1 | 2010-11-15 21:56:54 | 2010-11-13 23:07:27 | +----+---------+-----------+---------------------+---------------------+ 5 rows in set (0.00 sec) 上記のように定義したテーブルがあります。 SELECT a.id, a.user_id, COUNT(*), DATE(a.created_at) AS date FROM access_log a WHERE (a.user_id = 'admin' AND a.created_at > '2010-11-01 00:00:00' AND a.created_at < '2010-11-29 23:59:59') GROUP BY date ORDER BY a.created_at; のようにして日別のアクセス数の集計をしています。 ここから、同じ日の同一IPのアクセスは1アクセスとして計算したいのですが、 どのようにSQLを書けばよいでしょうか? よろしくお願いいたします。
- ベストアンサー
- MySQL
- 【大至急】英訳のお願いです。
下記の英文の業務内容について、意味がわかりません。。 訳していただけますでしょうか(>_<) 宜しくお願い致します。 ▪️Custodian of safety cabinet key where company seals are kept ▪️Attaching appropriate seal to documents after reviewing and discussing with Legal, inserting execution dates as applicable (about 6documents per day) ▪️Initial contact point for Legal for anything that requires local language skills
- ベストアンサー
- 英語
- 和訳と英文解説お願いします
Co-developed with Break Thru People Solutions, an employment agency specialising in placing those with physical or developmental challenges into meaningful real world employment, the project borne of a simple idea has high hopes. http://www.clevercleverland.com.au/?p=1586 ここの記事の二段落目です 「Break Thru People Solutions」の意味もよくわかりませんし「in placing those with physical or developmental challenges」の部分もよくわかりません。「with」が使われていますがこれは関係代名詞の「Who」のようなものなのでしょうか? よろしくお願いします。
- ベストアンサー
- 英語
- DMXの歌詞を和訳してください
DMX "Where The Hood At"を和訳してください。全部じゃなくても構いません 以下URLに歌詞があるのでお願いします http://www.azlyrics.com/lyrics/dmx/wherethehoodat.html どういうことを言っているのかざっくりでもいいので教えてくださいよろしくお願いします
- ベストアンサー
- 英語
- 英文解釈
良い和訳を教えてください。 どの単語がどこにかかっているか、見分け方のポイントもお願いします。 The size and height of the mountain ranges in Europe were known with some approach to precision,those in parts of Latin America very roughly,those in Asia hardly at all,those in Africa for practical purposes not at all. forや,での繋がりが分からない原因です。 お願いいたします。
- ベストアンサー
- 英語
- the name personalizes him
These are some thoughts for "Where Is the Love?" -- the family with a child with autism out at a restaurant. When the people at the table next to the family complained about his "sounds," I think his dad was right to start off by saying, "He has autism." I would have added, "Our son JT (the name personalizes him) has autism, and this is how he communicates. https://www.arcamax.com/healthandspirit/lifeadvice/dearannie/s-2100342 the name personalizes himはどのような意味でしょうか?よろしくお願いします
- ベストアンサー
- 英語
- bsrecorder18をヤマダ電機で購入しましたが、インストールできません。エラーが出てきてお困りです。
- 相談しても解決しないため、何度もお金を出して相談しているうちに費用が高額になってしまいました。
- 購入した商品を使いたいので、早急に解決する方法を教えてください。パソコンはWindows 11です。